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