Revert expanded from notification chat controller to overlay presentation until modal ordering is available

This commit is contained in:
Ali 2019-11-26 20:48:56 +04:00
parent fdda2fd2ce
commit a4f194e178
2 changed files with 6 additions and 5 deletions

View File

@ -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()))
}
}))
}

View File

@ -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