Преглед изворни кода

Merge pull request #1569 from deltachat/set-transl-sooner

set translations before starting I/O
cyBerta пре 3 година
родитељ
комит
06fb851d2f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      deltachat-ios/AppDelegate.swift

+ 1 - 1
deltachat-ios/AppDelegate.swift

@@ -111,8 +111,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
         locationManager = LocationManager(dcAccounts: dcAccounts)
         locationManager = LocationManager(dcAccounts: dcAccounts)
         UIApplication.shared.setMinimumBackgroundFetchInterval(UIApplication.backgroundFetchIntervalMinimum)
         UIApplication.shared.setMinimumBackgroundFetchInterval(UIApplication.backgroundFetchIntervalMinimum)
         notificationManager = NotificationManager(dcAccounts: dcAccounts)
         notificationManager = NotificationManager(dcAccounts: dcAccounts)
-        dcAccounts.startIo()
         setStockTranslations()
         setStockTranslations()
+        dcAccounts.startIo()
 
 
         reachability.whenReachable = { reachability in
         reachability.whenReachable = { reachability in
             // maybeNetwork() shall not be called in ui thread;
             // maybeNetwork() shall not be called in ui thread;