Skip to content

Commit

Permalink
Stop fetching user profile details now that is not necessary in file …
Browse files Browse the repository at this point in the history
…provider extension

Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Sep 30, 2024
1 parent 1edea0a commit e992f55
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit e992f55

Please sign in to comment.