From 690303f952cff11db608ee9157eeead043769d18 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Mon, 30 Sep 2024 16:05:50 +0800 Subject: [PATCH] Stop fetching user profile details now that is not necessary in file provider extension Signed-off-by: Claudio Cambra --- ...ileProviderExtension+ClientInterface.swift | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderExtension+ClientInterface.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderExtension+ClientInterface.swift index 99eaefb50..3cae7f945 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderExtension+ClientInterface.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderExtension+ClientInterface.swift @@ -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() } -- 2.30.2