Various UI improvements

This commit is contained in:
Ilya Laktyushin
2019-09-11 10:25:15 +03:00
parent f01d5d1546
commit 5ade4ad7ec
18 changed files with 697 additions and 516 deletions

View File

@@ -1017,7 +1017,9 @@ public class ChatListControllerImpl: TelegramBaseController, ChatListController,
}
@objc private func composePressed() {
(self.navigationController as? NavigationController)?.replaceAllButRootController(self.context.sharedContext.makeComposeController(context: self.context), animated: true)
let controller = self.context.sharedContext.makeComposeController(context: self.context)
self.present(controller, in: .window(.root))
//(self.navigationController as? NavigationController)?.replaceAllButRootController(self.context.sharedContext.makeComposeController(context: self.context), animated: true)
}
public func previewingContext(_ previewingContext: UIViewControllerPreviewing, viewControllerForLocation location: CGPoint) -> UIViewController? {