Эх сурвалжийг харах

Always unlock E2EE folders, even when go back from network unavailable

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 жил өмнө
parent
commit
4b21d73c15

+ 4 - 0
iOSClient/Networking/NCNetworking.swift

@@ -119,6 +119,10 @@ 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 {