Isolate postbox

This commit is contained in:
Ali
2021-09-22 01:56:45 +03:00
parent c808238571
commit d35acc8283
56 changed files with 744 additions and 182 deletions

View File

@@ -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 {