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,11 +3,11 @@ import Foundation
|
||||
final class MutableSynchronizeGroupMessageStatsView: MutablePostboxView {
|
||||
fileprivate var groupsAndNamespaces: Set<PeerGroupAndNamespace>
|
||||
|
||||
init(postbox: Postbox) {
|
||||
init(postbox: PostboxImpl) {
|
||||
self.groupsAndNamespaces = postbox.synchronizeGroupMessageStatsTable.get()
|
||||
}
|
||||
|
||||
func replay(postbox: Postbox, transaction: PostboxTransaction) -> Bool {
|
||||
func replay(postbox: PostboxImpl, transaction: PostboxTransaction) -> Bool {
|
||||
var updated = false
|
||||
if !transaction.currentUpdatedGroupSummarySynchronizeOperations.isEmpty {
|
||||
for (groupIdAndNamespace, value) in transaction.currentUpdatedGroupSummarySynchronizeOperations {
|
||||
|
||||
Reference in New Issue
Block a user