mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Support refreshDueToExternalTransaction in more views
This commit is contained in:
@@ -26,6 +26,16 @@ final class MutableSynchronizeGroupMessageStatsView: MutablePostboxView {
|
||||
}
|
||||
return updated
|
||||
}
|
||||
|
||||
func refreshDueToExternalTransaction(postbox: PostboxImpl) -> Bool {
|
||||
let groupsAndNamespaces = postbox.synchronizeGroupMessageStatsTable.get()
|
||||
if self.groupsAndNamespaces != groupsAndNamespaces {
|
||||
self.groupsAndNamespaces = groupsAndNamespaces
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
func immutableView() -> PostboxView {
|
||||
return SynchronizeGroupMessageStatsView(self)
|
||||
|
||||
Reference in New Issue
Block a user