Browse Source

fix

Signed-off-by: Marino Faggiana <8616947+marinofaggiana@users.noreply.github.com>
Marino Faggiana 1 year ago
parent
commit
af80b81575
2 changed files with 6 additions and 5 deletions
  1. 2 2
      Nextcloud.xcodeproj/project.pbxproj
  2. 4 3
      iOSClient/AppDelegate.swift

+ 2 - 2
Nextcloud.xcodeproj/project.pbxproj

@@ -5264,8 +5264,8 @@
 			isa = XCRemoteSwiftPackageReference;
 			isa = XCRemoteSwiftPackageReference;
 			repositoryURL = "https://github.com/nextcloud/NextcloudKit";
 			repositoryURL = "https://github.com/nextcloud/NextcloudKit";
 			requirement = {
 			requirement = {
-				kind = exactVersion;
-				version = 2.9.1;
+				branch = develop;
+				kind = branch;
 			};
 			};
 		};
 		};
 		F788ECC5263AAAF900ADC67F /* XCRemoteSwiftPackageReference "MarkdownKit" */ = {
 		F788ECC5263AAAF900ADC67F /* XCRemoteSwiftPackageReference "MarkdownKit" */ = {

+ 4 - 3
iOSClient/AppDelegate.swift

@@ -614,9 +614,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
             NextcloudKit.shared.nkCommonInstance.writeLog("[INFO] Initialize Auto upload with \(items) uploads")
             NextcloudKit.shared.nkCommonInstance.writeLog("[INFO] Initialize Auto upload with \(items) uploads")
         }
         }
 
 
-        DispatchQueue.global().async { NCImageCache.shared.createMediaCache(account: self.account) }
-
-        NotificationCenter.default.postOnMainThread(name: NCGlobal.shared.notificationCenterChangeUser)
+        DispatchQueue.global().async {
+            NCImageCache.shared.createMediaCache(account: self.account)
+            NotificationCenter.default.postOnMainThread(name: NCGlobal.shared.notificationCenterChangeUser)
+        }
     }
     }
 
 
     @objc func deleteAccount(_ account: String, wipe: Bool) {
     @objc func deleteAccount(_ account: String, wipe: Bool) {