Explorar o código

do not check watch-flags in the ui, this is done in the core

B. Petersen %!s(int64=5) %!d(string=hai) anos
pai
achega
53769395d9
Modificáronse 1 ficheiros con 8 adicións e 12 borrados
  1. 8 12
      deltachat-ios/AppDelegate.swift

+ 8 - 12
deltachat-ios/AppDelegate.swift

@@ -193,21 +193,17 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
             }
         }
 
-        if DcConfig.sentboxWatch {
-            DispatchQueue.global(qos: .background).async {
-                while self.state == .running {
-                    dc_perform_sentbox_fetch(mailboxPointer)
-                    dc_perform_sentbox_idle(mailboxPointer)
-                }
+        DispatchQueue.global(qos: .background).async {
+            while self.state == .running {
+                dc_perform_sentbox_fetch(mailboxPointer)
+                dc_perform_sentbox_idle(mailboxPointer)
             }
         }
 
-        if DcConfig.mvboxWatch {
-            DispatchQueue.global(qos: .background).async {
-                while self.state == .running {
-                    dc_perform_mvbox_fetch(mailboxPointer)
-                    dc_perform_mvbox_idle(mailboxPointer)
-                }
+        DispatchQueue.global(qos: .background).async {
+            while self.state == .running {
+                dc_perform_mvbox_fetch(mailboxPointer)
+                dc_perform_mvbox_idle(mailboxPointer)
             }
         }