瀏覽代碼

Merge pull request #784 from deltachat/maybe-network-on-fg

call maybeNetwork() unconditionally on coming to foreground;
bjoern 5 年之前
父節點
當前提交
3c1b1cd3a0
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      deltachat-ios/AppDelegate.swift

+ 1 - 3
deltachat-ios/AppDelegate.swift

@@ -103,9 +103,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
         logger.info("---- foreground ----")
         appIsInForeground = true
         startThreads()
-        if reachability.connection != .none {
-            self.dcContext.maybeNetwork()
-        }
+        self.dcContext.maybeNetwork()
 
         if let userDefaults = UserDefaults.shared, userDefaults.bool(forKey: UserDefaults.hasExtensionAttemptedToSend) {
             userDefaults.removeObject(forKey: UserDefaults.hasExtensionAttemptedToSend)