mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Isolate postbox
This commit is contained in:
@@ -3,12 +3,12 @@ final class MutablePendingMessageActionsView: MutablePostboxView {
|
||||
let type: PendingMessageActionType
|
||||
var entries: [PendingMessageActionsEntry]
|
||||
|
||||
init(postbox: Postbox, type: PendingMessageActionType) {
|
||||
init(postbox: PostboxImpl, type: PendingMessageActionType) {
|
||||
self.type = type
|
||||
self.entries = postbox.pendingMessageActionsTable.getActions(type: type)
|
||||
}
|
||||
|
||||
func replay(postbox: Postbox, transaction: PostboxTransaction) -> Bool {
|
||||
func replay(postbox: PostboxImpl, transaction: PostboxTransaction) -> Bool {
|
||||
var updated = false
|
||||
for operation in transaction.currentPendingMessageActionsOperations {
|
||||
switch operation {
|
||||
|
||||
Reference in New Issue
Block a user