Various improvements

This commit is contained in:
Ilya Laktyushin
2023-06-29 15:04:06 +02:00
parent 6158a4a7e6
commit ffcc989aee
3 changed files with 71 additions and 32 deletions

View File

@@ -361,6 +361,12 @@ public final class TelegramRootController: NavigationController, TelegramRootCon
return
}
if let rootTabController = self.rootTabController {
if let index = rootTabController.controllers.firstIndex(where: { $0 is ChatListController}) {
rootTabController.selectedIndex = index
}
}
if let chatListController = self.chatListController as? ChatListControllerImpl {
chatListController.scrollToStories()
switch mediaResult {