mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Revert expanded from notification chat controller to overlay presentation until modal ordering is available
This commit is contained in:
parent
fdda2fd2ce
commit
a4f194e178
@ -339,8 +339,8 @@ final class AuthorizedApplicationContext {
|
||||
let chatController = ChatControllerImpl(context: strongSelf.context, chatLocation: .peer(firstMessage.id.peerId), mode: .overlay)
|
||||
//chatController.navigation_setNavigationController(strongSelf.rootController)
|
||||
chatController.presentationArguments = ChatControllerOverlayPresentationData(expandData: expandData())
|
||||
strongSelf.rootController.pushViewController(chatController)
|
||||
//(strongSelf.rootController.viewControllers.last as? ViewController)?.present(chatController, in: .window(.root), with: ChatControllerOverlayPresentationData(expandData: expandData()))
|
||||
//strongSelf.rootController.pushViewController(chatController)
|
||||
(strongSelf.rootController.viewControllers.last as? ViewController)?.present(chatController, in: .window(.root), with: ChatControllerOverlayPresentationData(expandData: expandData()))
|
||||
}
|
||||
}))
|
||||
}
|
||||
|
@ -361,12 +361,12 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
|
||||
}
|
||||
super.init(context: context, navigationBarPresentationData: navigationBarPresentationData, mediaAccessoryPanelVisibility: mediaAccessoryPanelVisibility, locationBroadcastPanelSource: locationBroadcastPanelSource)
|
||||
|
||||
switch mode {
|
||||
/*switch mode {
|
||||
case .overlay:
|
||||
self.navigationPresentation = .standaloneModal
|
||||
default:
|
||||
break
|
||||
}
|
||||
}*/
|
||||
|
||||
self.blocksBackgroundWhenInOverlay = true
|
||||
|
||||
@ -4605,7 +4605,8 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
|
||||
case .standard, .inline:
|
||||
break
|
||||
case .overlay:
|
||||
if layout.safeInsets.top.isZero {
|
||||
if case .Ignore = self.statusBar.statusBarStyle {
|
||||
} else if layout.safeInsets.top.isZero {
|
||||
self.statusBar.statusBarStyle = .Hide
|
||||
} else {
|
||||
self.statusBar.statusBarStyle = .Ignore
|
||||
|
Loading…
x
Reference in New Issue
Block a user