Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios

This commit is contained in:
Ilya Laktyushin 2025-12-30 23:41:43 +04:00
commit 3defa0121e
3 changed files with 6 additions and 2 deletions

View file

@ -3977,10 +3977,10 @@ public final class PremiumIntroScreen: ViewControllerComponentContainer {
shareLinkImpl?(link)
}
), navigationBarAppearance: .default, presentationMode: modal ? .modal : .default, theme: forceDark ? .dark : .default, updatedPresentationData: screenContext.updatedPresentationData)
self._hasGlassStyle = true
if modal {
let cancelItem = UIBarButtonItem(title: presentationData.strings.Common_Close, style: .plain, target: self, action: #selector(self.cancelPressed))
self.navigationItem.setLeftBarButton(cancelItem, animated: false)
self.navigationPresentation = .modal
} else {
self.navigationPresentation = .modalInLargeLayout

View file

@ -13654,6 +13654,8 @@ public final class PeerInfoScreenImpl: ViewController, PeerInfoScreen, KeyShortc
badgeTextColor: baseNavigationBarPresentationData.theme.badgeTextColor
), strings: baseNavigationBarPresentationData.strings))
self._hasGlassStyle = true
self.navigationBar?.enableAutomaticBackButton = false
if isSettings || isMyProfile {

View file

@ -723,6 +723,8 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
super.init(context: context, navigationBarPresentationData: navigationBarPresentationData)
self._hasGlassStyle = true
self.automaticallyControlPresentationContextLayout = false
self.blocksBackgroundWhenInOverlay = true
self.acceptsFocusWhenInOverlay = true