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:
@@ -222,7 +222,7 @@ final class ViewTracker {
|
||||
self.combinedViews.remove(index)
|
||||
}
|
||||
|
||||
func refreshViewsDueToExternalTransaction(postbox: Postbox, fetchUnsentMessageIds: () -> [MessageId], fetchSynchronizePeerReadStateOperations: () -> [PeerId: PeerReadStateSynchronizationOperation]) {
|
||||
func refreshViewsDueToExternalTransaction(postbox: PostboxImpl, fetchUnsentMessageIds: () -> [MessageId], fetchSynchronizePeerReadStateOperations: () -> [PeerId: PeerReadStateSynchronizationOperation]) {
|
||||
var updateTrackedHoles = false
|
||||
|
||||
for (mutableView, pipe) in self.messageHistoryViews.copyItems() {
|
||||
@@ -259,7 +259,7 @@ final class ViewTracker {
|
||||
}
|
||||
}
|
||||
|
||||
func updateViews(postbox: Postbox, transaction: PostboxTransaction) {
|
||||
func updateViews(postbox: PostboxImpl, transaction: PostboxTransaction) {
|
||||
var updateTrackedHoles = false
|
||||
|
||||
if let currentUpdatedState = transaction.currentUpdatedState {
|
||||
|
||||
Reference in New Issue
Block a user