mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
Properly dismiss bot input buttons
This commit is contained in:
parent
8a8af27f9a
commit
dcc93534c8
@ -1525,6 +1525,10 @@ class ChatControllerNode: ASDisplayNode, UIScrollViewDelegate {
|
|||||||
switch self.chatPresentationInterfaceState.inputMode {
|
switch self.chatPresentationInterfaceState.inputMode {
|
||||||
case .none:
|
case .none:
|
||||||
break
|
break
|
||||||
|
case .inputButtons:
|
||||||
|
self.interfaceInteraction?.updateInputModeAndDismissedButtonKeyboardMessageId({ state in
|
||||||
|
return (.none, state.keyboardButtonsMessage?.id ?? state.interfaceState.messageActionsState.closedButtonKeyboardMessageId)
|
||||||
|
})
|
||||||
default:
|
default:
|
||||||
self.interfaceInteraction?.updateInputModeAndDismissedButtonKeyboardMessageId({ state in
|
self.interfaceInteraction?.updateInputModeAndDismissedButtonKeyboardMessageId({ state in
|
||||||
return (.none, state.interfaceState.messageActionsState.closedButtonKeyboardMessageId)
|
return (.none, state.interfaceState.messageActionsState.closedButtonKeyboardMessageId)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user