Support secret chat layer 144

This commit is contained in:
Ali
2022-07-26 15:38:26 +02:00
parent 079f0cdb00
commit 8f3e7f5a96
13 changed files with 2425 additions and 138 deletions

View File

@@ -2420,7 +2420,9 @@ class ChatControllerNode: ASDisplayNode, UIScrollViewDelegate {
if !self.didInitializeInputMediaNodeDataPromise, let interfaceInteraction = self.interfaceInteraction {
self.didInitializeInputMediaNodeDataPromise = true
self.inputMediaNodeDataPromise.set(ChatEntityKeyboardInputNode.inputData(context: self.context, interfaceInteraction: interfaceInteraction, controllerInteraction: self.controllerInteraction, chatPeerId: self.chatLocation.peerId))
let areCustomEmojiEnabled = self.chatPresentationInterfaceState.customEmojiAvailable
self.inputMediaNodeDataPromise.set(ChatEntityKeyboardInputNode.inputData(context: self.context, interfaceInteraction: interfaceInteraction, controllerInteraction: self.controllerInteraction, chatPeerId: self.chatLocation.peerId, areCustomEmojiEnabled: areCustomEmojiEnabled))
}
if self.inputMediaNode == nil && !"".isEmpty {