Fix thread hole index

This commit is contained in:
Ali
2020-09-23 22:59:04 +04:00
parent 783cbb64af
commit 13550ea6fa
2 changed files with 2 additions and 0 deletions

View File

@@ -110,6 +110,7 @@ final class MessageHistoryThreadHoleIndexTable: Table {
private func ensureInitialized(peerId: PeerId, threadId: Int64) {
if !self.metadataTable.isThreadHoleIndexInitialized(peerId: peerId, threadId: threadId) {
postboxLog("MessageHistoryThreadHoleIndexTable: Initializing \(peerId) \(threadId)")
self.metadataTable.setIsThreadHoleIndexInitialized(peerId: peerId, threadId: threadId)
if let messageNamespaces = self.seedConfiguration.messageThreadHoles[peerId.namespace] {