Display in-app notifications as modal screens

This commit is contained in:
Peter 2019-10-11 16:20:42 +04:00
parent 6ef163cf1d
commit 2f99bea37a

View File

@ -461,7 +461,9 @@ final class AuthorizedApplicationContext {
if let strongSelf = self {
let chatController = ChatControllerImpl(context: strongSelf.context, chatLocation: .peer(firstMessage.id.peerId), mode: .overlay)
//chatController.navigation_setNavigationController(strongSelf.rootController)
(strongSelf.rootController.viewControllers.last as? ViewController)?.present(chatController, in: .window(.root), with: ChatControllerOverlayPresentationData(expandData: expandData()))
chatController.presentationArguments = ChatControllerOverlayPresentationData(expandData: expandData())
strongSelf.rootController.pushViewController(chatController)
//(strongSelf.rootController.viewControllers.last as? ViewController)?.present(chatController, in: .window(.root), with: ChatControllerOverlayPresentationData(expandData: expandData()))
}
}))
}