diff --git a/submodules/Postbox/Sources/GlobalMessageTagsView.swift b/submodules/Postbox/Sources/GlobalMessageTagsView.swift index 6733a52339..c67851ba44 100644 --- a/submodules/Postbox/Sources/GlobalMessageTagsView.swift +++ b/submodules/Postbox/Sources/GlobalMessageTagsView.swift @@ -204,7 +204,7 @@ final class MutableGlobalMessageTagsView: MutablePostboxView { } func refreshDueToExternalTransaction(postbox: PostboxImpl) -> Bool { - let (entries, lower, upper) = postbox.messageHistoryTable.entriesAround(globalTagMask: globalTag, index: position, count: count) + /*let (entries, lower, upper) = postbox.messageHistoryTable.entriesAround(globalTagMask: globalTag, index: position, count: count) self.entries = entries.map { entry -> InternalGlobalMessageTagsEntry in switch entry { @@ -219,7 +219,8 @@ final class MutableGlobalMessageTagsView: MutablePostboxView { self.render(postbox: postbox) - return true + return true*/ + return false } private func add(_ entry: InternalGlobalMessageTagsEntry) -> Bool { diff --git a/submodules/Postbox/Sources/HistoryTagInfoView.swift b/submodules/Postbox/Sources/HistoryTagInfoView.swift index 7892353518..912b4a86b0 100644 --- a/submodules/Postbox/Sources/HistoryTagInfoView.swift +++ b/submodules/Postbox/Sources/HistoryTagInfoView.swift @@ -63,7 +63,7 @@ final class MutableHistoryTagInfoView: MutablePostboxView { } func refreshDueToExternalTransaction(postbox: PostboxImpl) -> Bool { - var currentIndex: MessageIndex? + /*var currentIndex: MessageIndex? for namespace in postbox.messageHistoryIndexTable.existingNamespaces(peerId: self.peerId) { if let index = postbox.messageHistoryTagsTable.latestIndex(tag: self.tag, peerId: self.peerId, namespace: namespace) { currentIndex = index @@ -75,7 +75,8 @@ final class MutableHistoryTagInfoView: MutablePostboxView { return true } else { return false - } + }*/ + return false } func immutableView() -> PostboxView { diff --git a/submodules/Postbox/Sources/InvalidatedMessageHistoryTagSummariesView.swift b/submodules/Postbox/Sources/InvalidatedMessageHistoryTagSummariesView.swift index 13224a2502..3ae4264e78 100644 --- a/submodules/Postbox/Sources/InvalidatedMessageHistoryTagSummariesView.swift +++ b/submodules/Postbox/Sources/InvalidatedMessageHistoryTagSummariesView.swift @@ -39,7 +39,7 @@ final class MutableInvalidatedMessageHistoryTagSummariesView: MutablePostboxView } func refreshDueToExternalTransaction(postbox: PostboxImpl) -> Bool { - var entries = Set() + /*var entries = Set() for entry in postbox.invalidatedMessageHistoryTagsSummaryTable.get(tagMask: tagMask, namespace: namespace) { entries.insert(entry) } @@ -48,7 +48,8 @@ final class MutableInvalidatedMessageHistoryTagSummariesView: MutablePostboxView return true } else { return false - } + }*/ + return false } func immutableView() -> PostboxView { diff --git a/submodules/Postbox/Sources/ItemCollectionIdsView.swift b/submodules/Postbox/Sources/ItemCollectionIdsView.swift index 232419de61..02950b33b4 100644 --- a/submodules/Postbox/Sources/ItemCollectionIdsView.swift +++ b/submodules/Postbox/Sources/ItemCollectionIdsView.swift @@ -42,7 +42,7 @@ final class MutableItemCollectionIdsView: MutablePostboxView { } func refreshDueToExternalTransaction(postbox: PostboxImpl) -> Bool { - var idsByNamespace: [ItemCollectionId.Namespace: Set] = [:] + /*var idsByNamespace: [ItemCollectionId.Namespace: Set] = [:] for namespace in namespaces { let ids = postbox.itemCollectionInfoTable.getIds(namespace: namespace) idsByNamespace[namespace] = Set(ids) @@ -52,7 +52,8 @@ final class MutableItemCollectionIdsView: MutablePostboxView { return true } else { return false - } + }*/ + return false } func immutableView() -> PostboxView { diff --git a/submodules/Postbox/Sources/MessageHistoryTagSummaryView.swift b/submodules/Postbox/Sources/MessageHistoryTagSummaryView.swift index 4e62e434cf..8c2d9bd6ab 100644 --- a/submodules/Postbox/Sources/MessageHistoryTagSummaryView.swift +++ b/submodules/Postbox/Sources/MessageHistoryTagSummaryView.swift @@ -27,13 +27,14 @@ final class MutableMessageHistoryTagSummaryView: MutablePostboxView { } func refreshDueToExternalTransaction(postbox: PostboxImpl) -> Bool { - let count = postbox.messageHistoryTagsSummaryTable.get(MessageHistoryTagsSummaryKey(tag: self.tag, peerId: self.peerId, namespace: self.namespace))?.count + /*let count = postbox.messageHistoryTagsSummaryTable.get(MessageHistoryTagsSummaryKey(tag: self.tag, peerId: self.peerId, namespace: self.namespace))?.count if self.count != count { self.count = count return true } else { return false - } + }*/ + return false } func immutableView() -> PostboxView { diff --git a/submodules/Postbox/Sources/PeerChatStateView.swift b/submodules/Postbox/Sources/PeerChatStateView.swift index df81cba5b3..fbcdd4a4bd 100644 --- a/submodules/Postbox/Sources/PeerChatStateView.swift +++ b/submodules/Postbox/Sources/PeerChatStateView.swift @@ -19,13 +19,14 @@ final class MutablePeerChatStateView: MutablePostboxView { } func refreshDueToExternalTransaction(postbox: PostboxImpl) -> Bool { - let chatState = postbox.peerChatStateTable.get(self.peerId) + /*let chatState = postbox.peerChatStateTable.get(self.peerId) if self.chatState != chatState { self.chatState = chatState return true } else { return false - } + }*/ + return false } func immutableView() -> PostboxView { diff --git a/submodules/Postbox/Sources/PeerNotificationSettingsBehaviorTimestampView.swift b/submodules/Postbox/Sources/PeerNotificationSettingsBehaviorTimestampView.swift index a00d2b33b6..606ae7ac2d 100644 --- a/submodules/Postbox/Sources/PeerNotificationSettingsBehaviorTimestampView.swift +++ b/submodules/Postbox/Sources/PeerNotificationSettingsBehaviorTimestampView.swift @@ -21,13 +21,14 @@ final class MutablePeerNotificationSettingsBehaviorTimestampView: MutablePostbox } func refreshDueToExternalTransaction(postbox: PostboxImpl) -> Bool { - let earliestTimestamp = postbox.peerNotificationSettingsBehaviorTable.getEarliest()?.1 + /*let earliestTimestamp = postbox.peerNotificationSettingsBehaviorTable.getEarliest()?.1 if self.earliestTimestamp != earliestTimestamp { self.earliestTimestamp = earliestTimestamp return true } else { return false - } + }*/ + return false } func immutableView() -> PostboxView { diff --git a/submodules/Postbox/Sources/PeerNotificationSettingsView.swift b/submodules/Postbox/Sources/PeerNotificationSettingsView.swift index 2d85dcf466..c73b3eb6da 100644 --- a/submodules/Postbox/Sources/PeerNotificationSettingsView.swift +++ b/submodules/Postbox/Sources/PeerNotificationSettingsView.swift @@ -38,7 +38,7 @@ final class MutablePeerNotificationSettingsView: MutablePostboxView { } func refreshDueToExternalTransaction(postbox: PostboxImpl) -> Bool { - var notificationSettings: [PeerId: PeerNotificationSettings] = [:] + /*var notificationSettings: [PeerId: PeerNotificationSettings] = [:] for peerId in self.peerIds { var notificationPeerId = peerId if let peer = postbox.peerTable.get(peerId), let associatedPeerId = peer.associatedPeerId { @@ -71,7 +71,8 @@ final class MutablePeerNotificationSettingsView: MutablePostboxView { return true } else { return false - } + }*/ + return false } func immutableView() -> PostboxView { diff --git a/submodules/Postbox/Sources/PeerPresencesView.swift b/submodules/Postbox/Sources/PeerPresencesView.swift index 51f4a32c03..d31011cf57 100644 --- a/submodules/Postbox/Sources/PeerPresencesView.swift +++ b/submodules/Postbox/Sources/PeerPresencesView.swift @@ -28,7 +28,7 @@ final class MutablePeerPresencesView: MutablePostboxView { } func refreshDueToExternalTransaction(postbox: PostboxImpl) -> Bool { - var presences: [PeerId: PeerPresence] = [:] + /*var presences: [PeerId: PeerPresence] = [:] for id in self.ids { if let presence = postbox.peerPresenceTable.get(id) { @@ -58,7 +58,8 @@ final class MutablePeerPresencesView: MutablePostboxView { return true } else { return false - } + }*/ + return false } func immutableView() -> PostboxView { diff --git a/submodules/Postbox/Sources/PreferencesView.swift b/submodules/Postbox/Sources/PreferencesView.swift index faec5ead7c..d739bb97a4 100644 --- a/submodules/Postbox/Sources/PreferencesView.swift +++ b/submodules/Postbox/Sources/PreferencesView.swift @@ -46,7 +46,7 @@ final class MutablePreferencesView: MutablePostboxView { } func refreshDueToExternalTransaction(postbox: PostboxImpl) -> Bool { - var values: [ValueBoxKey: PreferencesEntry] = [:] + /*var values: [ValueBoxKey: PreferencesEntry] = [:] for key in self.keys { if let value = postbox.preferencesTable.get(key: key) { values[key] = value @@ -57,7 +57,8 @@ final class MutablePreferencesView: MutablePostboxView { return true } else { return false - } + }*/ + return false } func immutableView() -> PostboxView { diff --git a/submodules/Postbox/Sources/SynchronizeGroupMessageStatsView.swift b/submodules/Postbox/Sources/SynchronizeGroupMessageStatsView.swift index af39f00534..088151545f 100644 --- a/submodules/Postbox/Sources/SynchronizeGroupMessageStatsView.swift +++ b/submodules/Postbox/Sources/SynchronizeGroupMessageStatsView.swift @@ -28,13 +28,14 @@ final class MutableSynchronizeGroupMessageStatsView: MutablePostboxView { } func refreshDueToExternalTransaction(postbox: PostboxImpl) -> Bool { - let groupsAndNamespaces = postbox.synchronizeGroupMessageStatsTable.get() + /*let groupsAndNamespaces = postbox.synchronizeGroupMessageStatsTable.get() if self.groupsAndNamespaces != groupsAndNamespaces { self.groupsAndNamespaces = groupsAndNamespaces return true } else { return false - } + }*/ + return false } func immutableView() -> PostboxView { diff --git a/submodules/Postbox/Sources/TopChatMessageView.swift b/submodules/Postbox/Sources/TopChatMessageView.swift index d348c6dfb1..b157e01ef7 100644 --- a/submodules/Postbox/Sources/TopChatMessageView.swift +++ b/submodules/Postbox/Sources/TopChatMessageView.swift @@ -31,7 +31,7 @@ final class MutableTopChatMessageView: MutablePostboxView { } func refreshDueToExternalTransaction(postbox: PostboxImpl) -> Bool { - var messages: [PeerId: Message] = [:] + /*var messages: [PeerId: Message] = [:] for peerId in self.peerIds { if let index = postbox.chatListIndexTable.get(peerId: peerId).topMessageIndex { @@ -62,7 +62,8 @@ final class MutableTopChatMessageView: MutablePostboxView { return true } else { return false - } + }*/ + return false } func immutableView() -> PostboxView {