Forráskód Böngészése

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

call maybeNetwork() unconditionally on coming to foreground;
bjoern 5 éve
szülő
commit
3c1b1cd3a0
1 módosított fájl, 1 hozzáadás és 3 törlés
  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)