Просмотр исходного кода

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

set translations before starting I/O
cyBerta 3 лет назад
Родитель
Сommit
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;