From 2f99bea37a039387c8a864a873e1842f45c8b955 Mon Sep 17 00:00:00 2001 From: Peter <> Date: Fri, 11 Oct 2019 16:20:42 +0400 Subject: [PATCH] Display in-app notifications as modal screens --- submodules/TelegramUI/TelegramUI/ApplicationContext.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/submodules/TelegramUI/TelegramUI/ApplicationContext.swift b/submodules/TelegramUI/TelegramUI/ApplicationContext.swift index 2129d433b3..db88e74862 100644 --- a/submodules/TelegramUI/TelegramUI/ApplicationContext.swift +++ b/submodules/TelegramUI/TelegramUI/ApplicationContext.swift @@ -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())) } })) }