From 713f8cd5c3839a1ec7f5d123411be70b2c2ba86f Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Tue, 3 Dec 2024 14:19:29 +0800 Subject: [PATCH] Adapt to removal of getPreview, use downloadPreview instead Signed-off-by: Claudio Cambra --- .../Interface/NextcloudKit+RemoteInterface.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/NextcloudFileProviderKit/Interface/NextcloudKit+RemoteInterface.swift b/Sources/NextcloudFileProviderKit/Interface/NextcloudKit+RemoteInterface.swift index 36a1aba..59ec4f0 100644 --- a/Sources/NextcloudFileProviderKit/Interface/NextcloudKit+RemoteInterface.swift +++ b/Sources/NextcloudFileProviderKit/Interface/NextcloudKit+RemoteInterface.swift @@ -190,10 +190,10 @@ extension NextcloudKit: RemoteInterface { url: URL, options: NKRequestOptions, taskHandler: @escaping (URLSessionTask) -> Void ) async -> (account: String, data: Data?, error: NKError) { await withCheckedContinuation { continuation in - getPreview( - url: url, options: options, taskHandler: taskHandler + downloadPreview( + url: url, account: account.ncKitAccount, options: options, taskHandler: taskHandler ) { account, data, error in - continuation.resume(returning: (account, data, error)) + continuation.resume(returning: (account, data?.data, error)) } } }