Browse Source

open lastActiveTab unanimated

B. Petersen 5 years ago
parent
commit
76f3884877

+ 2 - 2
deltachat-ios/Controller/ChatListController.swift

@@ -358,9 +358,9 @@ class ChatListController: UITableViewController {
         navigationController?.pushViewController(newChatVC, animated: true)
     }
 
-    func showChat(chatId: Int) {
+    func showChat(chatId: Int, animated: Bool = true) {
         let chatVC = ChatViewController(dcContext: dcContext, chatId: chatId)
-        navigationController?.pushViewController(chatVC, animated: true)
+        navigationController?.pushViewController(chatVC, animated: animated)
     }
 
     private func showArchive() {

+ 1 - 1
deltachat-ios/Coordinator/AppCoordinator.swift

@@ -89,7 +89,7 @@ class AppCoordinator {
     func showChat(chatId: Int, animated: Bool = true) {
         showTab(index: chatsTab)
         if let rootController = self.chatsNavController.viewControllers.first as? ChatListController {
-            rootController.showChat(chatId: chatId)
+            rootController.showChat(chatId: chatId, animated: animated)
         }
     }