Преглед на файлове

always refresh chatlist in background if app became active again

cyberta преди 3 години
родител
ревизия
3514983253
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      deltachat-ios/Controller/ChatListController.swift

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

@@ -250,11 +250,11 @@ class ChatListController: UITableViewController {
     private var isInitial = true
     @objc func applicationDidBecomeActive(_ notification: NSNotification) {
         if navigationController?.visibleViewController == self {
-            if !isInitial {
+            if isInitial {
                 isInitial = false
                 startTimer()
-                refreshInBg()
             }
+            refreshInBg()
         }
     }