Attempt to fix the forwarding panel

This commit is contained in:
Ali
2021-03-19 18:06:36 +04:00
parent a6c4ad95fc
commit 1cee5a5281
2 changed files with 13 additions and 3 deletions

View File

@@ -4322,7 +4322,13 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
//effectiveCachedDataReady = .single(true)
effectiveCachedDataReady = self.cachedDataReady.get()
}
self.ready.set(combineLatest(self.chatDisplayNode.historyNode.historyState.get(), self._chatLocationInfoReady.get(), effectiveCachedDataReady, initialData) |> map { _, chatLocationInfoReady, cachedDataReady, _ in
self.ready.set(combineLatest(queue: .mainQueue(),
self.chatDisplayNode.historyNode.historyState.get(),
self._chatLocationInfoReady.get(),
effectiveCachedDataReady,
initialData
)
|> map { _, chatLocationInfoReady, cachedDataReady, _ in
return chatLocationInfoReady && cachedDataReady
})