From e1540d5c609bb518d2633f02947f407cbbbd116b Mon Sep 17 00:00:00 2001 From: Ali <> Date: Mon, 30 Oct 2023 19:31:46 +0400 Subject: [PATCH] Don't re-index unread counters in extensions --- submodules/Postbox/Sources/Postbox.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/Postbox/Sources/Postbox.swift b/submodules/Postbox/Sources/Postbox.swift index d9f7e8bccc..13dd203412 100644 --- a/submodules/Postbox/Sources/Postbox.swift +++ b/submodules/Postbox/Sources/Postbox.swift @@ -1899,7 +1899,7 @@ final class PostboxImpl { } //#endif - if !isTemporary && self.messageHistoryMetadataTable.shouldReindexUnreadCounts() { + if !isTemporary && useCaches && self.messageHistoryMetadataTable.shouldReindexUnreadCounts() { self.groupMessageStatsTable.removeAll() let startTime = CFAbsoluteTimeGetCurrent() let (totalStates, summaries) = self.chatListIndexTable.debugReindexUnreadCounts(postbox: self, currentTransaction: transaction)