Browse Source

clear test code

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 years ago
parent
commit
189a63537f
2 changed files with 5 additions and 7 deletions
  1. 4 6
      iOSClient/AppDelegate.swift
  2. 1 1
      iOSClient/Networking/NCService.swift

+ 4 - 6
iOSClient/AppDelegate.swift

@@ -209,12 +209,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
         if activeAccount.account != account {
             settingAccount(activeAccount.account, urlBase: activeAccount.urlBase, user: activeAccount.user, userId: activeAccount.userId, password: CCUtility.getPassword(activeAccount.account))
         } else {
-            DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
-                // Unlock E2EE
-                NCNetworkingE2EE.shared.unlockAll(account: self.account)
-                // Request Service Server Nextcloud
-                NCService.shared.startRequestServicesServer()
-            }
+            // Unlock E2EE
+            NCNetworkingE2EE.shared.unlockAll(account: self.account)
+            // Request Service Server Nextcloud
+            NCService.shared.startRequestServicesServer()
         }
 
         // Required unsubscribing / subscribing

+ 1 - 1
iOSClient/Networking/NCService.swift

@@ -39,7 +39,7 @@ class NCService: NSObject {
     @objc public func startRequestServicesServer() {
 
         NCManageDatabase.shared.clearAllAvatarLoaded()
-        guard !appDelegate.account.isEmpty, UIApplication.shared.applicationState == .active else { return }
+        guard !appDelegate.account.isEmpty else { return }
 
         addInternalTypeIdentifier()
         requestServerStatus()