Browse Source

moved table reloading from viewWillAppear to viewDidLoad because it caused a glitch on active search when navigating back from chatDetail

nayooti 5 years ago
parent
commit
888d70261c
1 changed files with 1 additions and 3 deletions
  1. 1 3
      deltachat-ios/Controller/ChatListController.swift

+ 1 - 3
deltachat-ios/Controller/ChatListController.swift

@@ -63,14 +63,12 @@ class ChatListController: UIViewController {
         newButton.tintColor = DcColors.primary
         navigationItem.rightBarButtonItem = newButton
         navigationItem.searchController = searchController
-
         setupChatTable()
+        chatTable.reloadData()
     }
 
-
     override func viewWillAppear(_ animated: Bool) {
         super.viewWillAppear(animated)
-        chatTable.reloadData()
         updateTitle()
     }