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

clear code

Signed-off-by: Marino Faggiana <96728420+MarinoFaggianaAstraIridium@users.noreply.github.com>
Marino Faggiana 2 жил өмнө
parent
commit
7b51d35f5e

+ 3 - 3
iOSClient/AppDelegate.swift

@@ -226,8 +226,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
 
     // L' applicazione si dimetterà dallo stato di attivo
     func applicationWillResignActive(_ application: UIApplication) {
-        // Nextcloud share accounts
-        if let error = shareAccounts() {
+        // Nextcloud update share accounts
+        if let error = updateShareAccounts() {
             NKCommon.shared.writeLog("[ERROR] Create share accounts \(error.localizedDescription)")
         }
         NKCommon.shared.writeLog("[INFO] Application will resign active")
@@ -624,7 +624,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
         }
     }
 
-    func shareAccounts() -> Error? {
+    func updateShareAccounts() -> Error? {
         guard let dirGroupApps = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: NCBrandOptions.shared.capabilitiesGroupApps) else { return nil }
 
         let tableAccount = NCManageDatabase.shared.getAllAccount()

+ 1 - 1
iOSClient/Login/NCLogin.swift

@@ -117,7 +117,7 @@ class NCLogin: UIViewController, UITextFieldDelegate, NCLoginQRCodeDelegate {
 
         if NCBrandOptions.shared.use_GroupApps, let dirGroupApps = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: NCBrandOptions.shared.capabilitiesGroupApps) {
             // Nextcloud update share accounts
-            if let error = appDelegate.shareAccounts() {
+            if let error = appDelegate.updateShareAccounts() {
                 NKCommon.shared.writeLog("[ERROR] Create share accounts \(error.localizedDescription)")
             }
             // Nextcloud get share accounts