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
})

View File

@ -100,7 +100,7 @@ final class ForwardAccessoryPanelNode: AccessoryPanelNode {
self.closeButton.displaysAsynchronously = false
self.lineNode = ASImageNode()
self.lineNode.displayWithoutProcessing = true
self.lineNode.displayWithoutProcessing = false
self.lineNode.displaysAsynchronously = false
self.lineNode.image = PresentationResourcesChat.chatInputPanelVerticalSeparatorLineImage(theme)
@ -158,6 +158,11 @@ final class ForwardAccessoryPanelNode: AccessoryPanelNode {
strongSelf.actionArea.accessibilityLabel = "\(headerString). From: \(authors).\n\(text)"
strongSelf.setNeedsLayout()
if let subnodes = strongSelf.subnodes {
for subnode in subnodes {
subnode.setNeedsDisplay()
}
}
}
}))
}
@ -198,7 +203,6 @@ final class ForwardAccessoryPanelNode: AccessoryPanelNode {
}
override func updateState(size: CGSize, interfaceState: ChatPresentationInterfaceState) {
}
override func layout() {