Various fixes

This commit is contained in:
Ilya Laktyushin
2022-06-05 17:59:44 +04:00
parent b69a0b6b3d
commit ab9d2f1ea6
4 changed files with 84 additions and 61 deletions

View File

@@ -3466,8 +3466,8 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
let openWebView = {
if fromMenu {
strongSelf.interfaceInteraction?.updateShowWebView { _ in
return true
strongSelf.updateChatPresentationInterfaceState(interactive: false) { state in
return state.updatedShowWebView(true).updatedForceInputCommandsHidden(true)
}
let params = WebAppParameters(peerId: peerId, botId: peerId, botName: botName, url: url, queryId: nil, payload: nil, buttonText: buttonText, keepAliveSignal: nil, fromMenu: true, isSimple: false)
@@ -3494,6 +3494,10 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
if isFocused {
strongSelf.chatDisplayNode.textInputPanelNode?.ensureFocused()
}
strongSelf.updateChatPresentationInterfaceState(interactive: false) { state in
return state.updatedForceInputCommandsHidden(false)
}
}
}, getNavigationController: { [weak self] in
return self?.effectiveNavigationController