]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
Stop fetching user profile details now that is not necessary in file provider extension
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Mon, 30 Sep 2024 08:05:50 +0000 (16:05 +0800)
committerClaudio Cambra <claudio.cambra@nextcloud.com>
Fri, 11 Oct 2024 08:40:47 +0000 (16:40 +0800)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderExtension+ClientInterface.swift

index 99eaefb50886b86ae0234225e1e905b1a6b73609..3cae7f945acb61ce997eef2de2951eaef6e75179 100644 (file)
@@ -165,26 +165,6 @@ extension FileProviderExtension: NSFileProviderServicing, ChangeNotificationInte
             remoteInterface: ncKit, changeNotificationInterface: self, domain: domain
         )
         ncKit.setup(delegate: changeObserver)
-        
-        Task {
-            let (_, profile, _, error) = await ncKit.fetchUserProfile()
-            guard error == .success, let profile else {
-                // Note that since the authentication check checks for the user profile, this should
-                // not really occur
-                Logger.fileProviderExtension.error(
-                    """
-                    Unable to get user profile for user \(user, privacy: .public) 
-                    at server \(serverUrl, privacy: .public)
-                    error: \(error.errorDescription, privacy: .public)
-                    """
-                )
-                return
-            }
-            ncKit.setup(user: user, userId: profile.userId, password: password, urlBase: serverUrl)
-            semaphore.signal()
-        }
-        semaphore.wait()
-
         signalEnumeratorAfterAccountSetup()
     }