mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-05 05:51:42 +00:00
Attempt to fix the forwarding panel
This commit is contained in:
parent
a6c4ad95fc
commit
1cee5a5281
@ -4322,7 +4322,13 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
|
|||||||
//effectiveCachedDataReady = .single(true)
|
//effectiveCachedDataReady = .single(true)
|
||||||
effectiveCachedDataReady = self.cachedDataReady.get()
|
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
|
return chatLocationInfoReady && cachedDataReady
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@ -100,7 +100,7 @@ final class ForwardAccessoryPanelNode: AccessoryPanelNode {
|
|||||||
self.closeButton.displaysAsynchronously = false
|
self.closeButton.displaysAsynchronously = false
|
||||||
|
|
||||||
self.lineNode = ASImageNode()
|
self.lineNode = ASImageNode()
|
||||||
self.lineNode.displayWithoutProcessing = true
|
self.lineNode.displayWithoutProcessing = false
|
||||||
self.lineNode.displaysAsynchronously = false
|
self.lineNode.displaysAsynchronously = false
|
||||||
self.lineNode.image = PresentationResourcesChat.chatInputPanelVerticalSeparatorLineImage(theme)
|
self.lineNode.image = PresentationResourcesChat.chatInputPanelVerticalSeparatorLineImage(theme)
|
||||||
|
|
||||||
@ -158,6 +158,11 @@ final class ForwardAccessoryPanelNode: AccessoryPanelNode {
|
|||||||
strongSelf.actionArea.accessibilityLabel = "\(headerString). From: \(authors).\n\(text)"
|
strongSelf.actionArea.accessibilityLabel = "\(headerString). From: \(authors).\n\(text)"
|
||||||
|
|
||||||
strongSelf.setNeedsLayout()
|
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 updateState(size: CGSize, interfaceState: ChatPresentationInterfaceState) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override func layout() {
|
override func layout() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user