Correctly set up NCKit instance with account string

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-04-16 18:22:53 +08:00
parent 9e7ce1640d
commit 7664509e22
No known key found for this signature in database
GPG Key ID: C839200C384636B0
1 changed files with 5 additions and 4 deletions

View File

@ -94,10 +94,11 @@ extension FileProviderExtension: NSFileProviderServicing {
guard newNcAccount != ncAccount else { return }
ncAccount = newNcAccount
ncKit.setup(
user: ncAccount!.username,
userId: ncAccount!.username,
password: ncAccount!.password,
urlBase: ncAccount!.serverUrl,
account: newNcAccount.ncKitAccount,
user: newNcAccount.username,
userId: newNcAccount.username,
password: newNcAccount.password,
urlBase: newNcAccount.serverUrl,
userAgent: "Nextcloud-macOS/FileProviderExt",
nextcloudVersion: 25,
delegate: nil) // TODO: add delegate methods for self