From 74e52c0ce2e7a4116c1a7e43958ce5d63a2bc058 Mon Sep 17 00:00:00 2001 From: Mikhail Filimonov Date: Thu, 1 Mar 2018 12:34:45 +0400 Subject: [PATCH 1/3] no message --- Postbox/ItemCollectionsView.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Postbox/ItemCollectionsView.swift b/Postbox/ItemCollectionsView.swift index 4102087550..2b562e288d 100644 --- a/Postbox/ItemCollectionsView.swift +++ b/Postbox/ItemCollectionsView.swift @@ -35,6 +35,10 @@ public struct ItemCollectionViewEntryIndex: Comparable { public struct ItemCollectionViewEntry { public let index: ItemCollectionViewEntryIndex public let item: ItemCollectionItem + public init(index: ItemCollectionViewEntryIndex, item: ItemCollectionItem) { + self.index = index + self.item = item + } } private func fetchLowerEntries(namespaces: [ItemCollectionId.Namespace], collectionId: ItemCollectionId, collectionIndex: Int32, itemIndex: ItemCollectionItemIndex, count: Int, lowerCollectionId: (_ namespaceList: [ItemCollectionId.Namespace], _ collectionId: ItemCollectionId, _ collectionIndex: Int32) -> (ItemCollectionId, Int32)?, lowerItems: (_ collectionId: ItemCollectionId, _ itemIndex: ItemCollectionItemIndex, _ count: Int) -> [ItemCollectionItem]) -> [ItemCollectionViewEntry] { From 18a2c47bea0c365320c6a970738325f2261d8a7f Mon Sep 17 00:00:00 2001 From: Mikhail Filimonov <> Date: Fri, 18 May 2018 20:30:14 +0300 Subject: [PATCH 2/3] no message --- Postbox/ViewTracker.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Postbox/ViewTracker.swift b/Postbox/ViewTracker.swift index 2b608ee5b7..7d61a858e6 100644 --- a/Postbox/ViewTracker.swift +++ b/Postbox/ViewTracker.swift @@ -420,7 +420,7 @@ final class ViewTracker { } } - if !transaction.chatListOperations.isEmpty || !transaction.currentUpdatedPeerNotificationSettings.isEmpty || !transaction.currentUpdatedPeers.isEmpty || !transaction.currentInvalidateMessageTagSummaries.isEmpty || !transaction.currentUpdatedMessageTagSummaries.isEmpty || !transaction.currentOperationsByPeerId.isEmpty { + if !transaction.chatListOperations.isEmpty || !transaction.currentUpdatedPeerNotificationSettings.isEmpty || !transaction.currentUpdatedPeers.isEmpty || !transaction.currentInvalidateMessageTagSummaries.isEmpty || !transaction.currentUpdatedMessageTagSummaries.isEmpty || !transaction.currentOperationsByPeerId.isEmpty || transaction.replacedAdditionalChatListItems != nil { for (mutableView, pipe) in self.chatListViews.copyItems() { let context = MutableChatListViewReplayContext() if mutableView.replay(postbox: postbox, operations: transaction.chatListOperations, updatedPeerNotificationSettings: transaction.currentUpdatedPeerNotificationSettings, updatedPeers: transaction.currentUpdatedPeers, transaction: transaction, context: context) { From af2c3aadcc0f2f7e984778e81a0a6b0d9e70196e Mon Sep 17 00:00:00 2001 From: overtake Date: Fri, 15 Jun 2018 23:21:49 +0300 Subject: [PATCH 3/3] no message --- Postbox/Postbox.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Postbox/Postbox.swift b/Postbox/Postbox.swift index 7616639753..fc6cbbdb4c 100644 --- a/Postbox/Postbox.swift +++ b/Postbox/Postbox.swift @@ -1099,7 +1099,7 @@ public final class Postbox { //if let strongSelf = self { /*strongSelf.queue.async { if strongSelf.valueBox != nil { - let _ = strongSelf.modify({ _ -> Void in + let _ = strongSelf.transaction({ _ -> Void in }).start() } }*/