mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 12:35:52 +03:00
Stop fetching user profile details now that is not necessary in file provider extension
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
4d7b3eeacb
commit
690303f952
1 changed files with 0 additions and 20 deletions
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue