Browse Source

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

B. Petersen 5 năm trước cách đây
mục cha
commit
53769395d9
1 tập tin đã thay đổi với 8 bổ sung12 xóa
  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)
             }
         }