mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Various fixes
This commit is contained in:
@@ -40,12 +40,16 @@ func inputNodeForChatPresentationIntefaceState(_ chatPresentationInterfaceState:
|
||||
return inputNode
|
||||
}
|
||||
case .inputButtons:
|
||||
if let currentNode = currentNode as? ChatButtonKeyboardInputNode {
|
||||
return currentNode
|
||||
if chatPresentationInterfaceState.forceInputCommandsHidden {
|
||||
return nil
|
||||
} else {
|
||||
let inputNode = ChatButtonKeyboardInputNode(context: context, controllerInteraction: controllerInteraction)
|
||||
inputNode.interfaceInteraction = interfaceInteraction
|
||||
return inputNode
|
||||
if let currentNode = currentNode as? ChatButtonKeyboardInputNode {
|
||||
return currentNode
|
||||
} else {
|
||||
let inputNode = ChatButtonKeyboardInputNode(context: context, controllerInteraction: controllerInteraction)
|
||||
inputNode.interfaceInteraction = interfaceInteraction
|
||||
return inputNode
|
||||
}
|
||||
}
|
||||
case .none, .text:
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user