@@ -2758,22 +2758,20 @@ public final class WebAppController: ViewController, AttachmentContainable {
27582758 self . statusBar. statusBarStyle = self . presentationData. theme. rootController. statusBarStyle. style
27592759 self . automaticallyControlPresentationContextLayout = false
27602760
2761- if !self . isFullscreen {
2762- self . navigationItem. leftBarButtonItem = UIBarButtonItem ( customDisplayNode: self . cancelButtonNode)
2763- self . navigationItem. leftBarButtonItem? . action = #selector( self . cancelPressed)
2764- self . navigationItem. leftBarButtonItem? . target = self
2765-
2766- self . navigationItem. rightBarButtonItem = UIBarButtonItem ( customDisplayNode: self . moreButtonNode)
2767- self . navigationItem. rightBarButtonItem? . action = #selector( self . moreButtonPressed)
2768- self . navigationItem. rightBarButtonItem? . target = self
2769-
2770- self . navigationItem. backBarButtonItem = UIBarButtonItem ( title: self . presentationData. strings. Common_Back, style: . plain, target: nil , action: nil )
2771-
2772- let titleView = WebAppTitleView ( context: self . context, theme: self . presentationData. theme)
2773- titleView. title = WebAppTitle ( title: params. botName, counter: self . presentationData. strings. WebApp_Miniapp, isVerified: params. botVerified)
2774- self . navigationItem. titleView = titleView
2775- self . titleView = titleView
2776- }
2761+ self . navigationItem. leftBarButtonItem = UIBarButtonItem ( customDisplayNode: self . cancelButtonNode)
2762+ self . navigationItem. leftBarButtonItem? . action = #selector( self . cancelPressed)
2763+ self . navigationItem. leftBarButtonItem? . target = self
2764+
2765+ self . navigationItem. rightBarButtonItem = UIBarButtonItem ( customDisplayNode: self . moreButtonNode)
2766+ self . navigationItem. rightBarButtonItem? . action = #selector( self . moreButtonPressed)
2767+ self . navigationItem. rightBarButtonItem? . target = self
2768+
2769+ self . navigationItem. backBarButtonItem = UIBarButtonItem ( title: self . presentationData. strings. Common_Back, style: . plain, target: nil , action: nil )
2770+
2771+ let titleView = WebAppTitleView ( context: self . context, theme: self . presentationData. theme)
2772+ titleView. title = WebAppTitle ( title: params. botName, counter: self . presentationData. strings. WebApp_Miniapp, isVerified: params. botVerified)
2773+ self . navigationItem. titleView = titleView
2774+ self . titleView = titleView
27772775
27782776 self . moreButtonNode. action = { [ weak self] _, gesture in
27792777 if let strongSelf = self {
0 commit comments