mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-17 00:31:09 +00:00
Display in-app notifications as modal screens
This commit is contained in:
parent
6ef163cf1d
commit
2f99bea37a
@ -461,7 +461,9 @@ final class AuthorizedApplicationContext {
|
|||||||
if let strongSelf = self {
|
if let strongSelf = self {
|
||||||
let chatController = ChatControllerImpl(context: strongSelf.context, chatLocation: .peer(firstMessage.id.peerId), mode: .overlay)
|
let chatController = ChatControllerImpl(context: strongSelf.context, chatLocation: .peer(firstMessage.id.peerId), mode: .overlay)
|
||||||
//chatController.navigation_setNavigationController(strongSelf.rootController)
|
//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()))
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user