Web app improvements

This commit is contained in:
Ilya Laktyushin 2022-04-06 23:34:17 +04:00
parent 63c0504806
commit 365888a991
2 changed files with 3 additions and 3 deletions

View File

@ -676,7 +676,7 @@ public class AttachmentController: ViewController {
containerHeight = layout.size.height
}
containerRect = CGRect(origin: CGPoint(), size: CGSize(width: layout.size.width, height: containerHeight))
self.wrapperNode.cornerRadius = 0.0
self.shadowNode.alpha = 0.0
@ -697,7 +697,7 @@ public class AttachmentController: ViewController {
if fromMenu && !hasButton, let inputContainerHeight = self.inputContainerHeight {
panelHeight = inputContainerHeight
}
if hasPanel || hasButton {
if hasPanel || hasButton || fromMenu {
containerInsets.bottom = panelHeight
}

View File

@ -3360,7 +3360,7 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
let openWebView = {
if fromMenu {
let params = WebAppParameters(peerId: peerId, botId: peerId, botName: botName, url: nil, queryId: nil, buttonText: buttonText, keepAliveSignal: nil, fromMenu: true)
let params = WebAppParameters(peerId: peerId, botId: peerId, botName: botName, url: url, queryId: nil, buttonText: buttonText, keepAliveSignal: nil, fromMenu: true)
let controller = standaloneWebAppController(context: strongSelf.context, updatedPresentationData: strongSelf.updatedPresentationData, params: params, openUrl: { [weak self] url in
self?.openUrl(url, concealed: true, forceExternal: true)
}, getInputContainerNode: { [weak self] in