marinofaggiana 3 年之前
父节点
当前提交
d617d4b172
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      iOSClient/AppDelegate.swift

+ 3 - 3
iOSClient/AppDelegate.swift

@@ -230,6 +230,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
         // Required unsubscribing / subscribing
         NCPushNotification.shared().pushNotification()
         
+        // Clear all avatars
+        avatars.removeAll()
+    
         // Request Service Server Nextcloud
         NCService.shared.startRequestServicesServer()
         
@@ -270,9 +273,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
             networkingProcessUpload?.stopTimer()
         }
         
-        // Clear all avatars
-        avatars.removeAll()
-        
         NCCommunicationCommon.shared.writeLog("Application did enter in background")
         
         passcodeWithAutomaticallyPromptForBiometricValidation(false)