Pārlūkot izejas kodu

always refresh chatlist in background if app became active again

cyberta 3 gadi atpakaļ
vecāks
revīzija
3514983253
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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()
         }
     }