Various improvements

This commit is contained in:
Ilya Laktyushin 2024-11-12 02:18:51 +04:00
parent e7f6d60b73
commit 3ed05bc39d

View File

@ -2758,7 +2758,6 @@ public final class WebAppController: ViewController, AttachmentContainable {
self.statusBar.statusBarStyle = self.presentationData.theme.rootController.statusBarStyle.style self.statusBar.statusBarStyle = self.presentationData.theme.rootController.statusBarStyle.style
self.automaticallyControlPresentationContextLayout = false self.automaticallyControlPresentationContextLayout = false
if !self.isFullscreen {
self.navigationItem.leftBarButtonItem = UIBarButtonItem(customDisplayNode: self.cancelButtonNode) self.navigationItem.leftBarButtonItem = UIBarButtonItem(customDisplayNode: self.cancelButtonNode)
self.navigationItem.leftBarButtonItem?.action = #selector(self.cancelPressed) self.navigationItem.leftBarButtonItem?.action = #selector(self.cancelPressed)
self.navigationItem.leftBarButtonItem?.target = self self.navigationItem.leftBarButtonItem?.target = self
@ -2773,7 +2772,6 @@ public final class WebAppController: ViewController, AttachmentContainable {
titleView.title = WebAppTitle(title: params.botName, counter: self.presentationData.strings.WebApp_Miniapp, isVerified: params.botVerified) titleView.title = WebAppTitle(title: params.botName, counter: self.presentationData.strings.WebApp_Miniapp, isVerified: params.botVerified)
self.navigationItem.titleView = titleView self.navigationItem.titleView = titleView
self.titleView = titleView self.titleView = titleView
}
self.moreButtonNode.action = { [weak self] _, gesture in self.moreButtonNode.action = { [weak self] _, gesture in
if let strongSelf = self { if let strongSelf = self {