Bläddra i källkod

Always unlock E2EE folders, even NCService

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 år sedan
förälder
incheckning
6a4efaa713

+ 0 - 2
iOSClient/AppDelegate.swift

@@ -209,8 +209,6 @@ 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 {
-            // Unlock E2EE
-            NCNetworkingE2EE.shared.unlockAll(account: self.account)
             // Request Service Server Nextcloud
             NCService.shared.startRequestServicesServer()
         }

+ 0 - 4
iOSClient/Networking/NCNetworking.swift

@@ -119,10 +119,6 @@ import Photos
         if typeReachability == NKCommon.typeReachability.reachableCellular || typeReachability == NKCommon.typeReachability.reachableEthernetOrWiFi {
             if !lastReachability {
                 NCService.shared.startRequestServicesServer()
-                // Unlock E2EE
-                if let account = (UIApplication.shared.delegate as? AppDelegate)?.account {
-                    NCNetworkingE2EE.shared.unlockAll(account: account)
-                }
             }
             lastReachability = true
         } else {

+ 2 - 0
iOSClient/Networking/NCService.swift

@@ -159,6 +159,8 @@ class NCService: NSObject {
 
             self.requestServerCapabilities()
             self.requestDashboardWidget()
+            // Unlock E2EE
+            NCNetworkingE2EE.shared.unlockAll(account: account)
         }
     }