|
@@ -216,20 +216,20 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
|
|
|
|
|
|
NKCommon.shared.writeLog("[INFO] Application will enter in foreground")
|
|
NKCommon.shared.writeLog("[INFO] Application will enter in foreground")
|
|
|
|
|
|
- // Account changed ??
|
|
|
|
if activeAccount.account != account {
|
|
if activeAccount.account != account {
|
|
settingAccount(activeAccount.account, urlBase: activeAccount.urlBase, user: activeAccount.user, userId: activeAccount.userId, password: CCUtility.getPassword(activeAccount.account))
|
|
settingAccount(activeAccount.account, urlBase: activeAccount.urlBase, user: activeAccount.user, userId: activeAccount.userId, password: CCUtility.getPassword(activeAccount.account))
|
|
|
|
+ } else {
|
|
|
|
+ DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
|
|
|
|
+ // Unlock E2EE
|
|
|
|
+ NCNetworkingE2EE.shared.unlockAll(account: self.account)
|
|
|
|
+ // Request Service Server Nextcloud
|
|
|
|
+ NCService.shared.startRequestServicesServer()
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
// Required unsubscribing / subscribing
|
|
// Required unsubscribing / subscribing
|
|
NCPushNotification.shared().pushNotification()
|
|
NCPushNotification.shared().pushNotification()
|
|
|
|
|
|
- // Request Service Server Nextcloud
|
|
|
|
- NCService.shared.startRequestServicesServer()
|
|
|
|
-
|
|
|
|
- // Unlock E2EE
|
|
|
|
- NCNetworkingE2EE.shared.unlockAll(account: account)
|
|
|
|
-
|
|
|
|
// Request TouchID, FaceID
|
|
// Request TouchID, FaceID
|
|
enableTouchFaceID()
|
|
enableTouchFaceID()
|
|
|
|
|
|
@@ -320,7 +320,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
|
|
|
|
|
|
// Unlock E2EE
|
|
// Unlock E2EE
|
|
NCNetworkingE2EE.shared.unlockAll(account: account)
|
|
NCNetworkingE2EE.shared.unlockAll(account: account)
|
|
-
|
|
|
|
|
|
+
|
|
// Start services
|
|
// Start services
|
|
NCService.shared.startRequestServicesServer()
|
|
NCService.shared.startRequestServicesServer()
|
|
|
|
|