Explorar o código

always refresh chatlist in background if app became active again

cyberta %!s(int64=3) %!d(string=hai) anos
pai
achega
3514983253
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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()
         }
     }