Add additional options to share controller creation method
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Wed, 6 Mar 2024 12:07:24 +0000 (20:07 +0800)
committerClaudio Cambra <claudio.cambra@nextcloud.com>
Wed, 17 Apr 2024 08:38:58 +0000 (16:38 +0800)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareController.swift

index a6f8d3def8750eb2de1a298d458953371c717a12..ba2666f8b542d53332fc137b485c7be11b034210 100644 (file)
@@ -34,7 +34,11 @@ class ShareController: ObservableObject {
             if shareType == .publicLink {
                 kit.createShareLink(
                     path: itemServerRelativePath,
-                    publicUpload: publicUpload
+                    hideDownload: hideDownload,
+                    publicUpload: publicUpload,
+                    password: password,
+                    permissions: permissions,
+                    options: options
                 ) { account, share, data, error in
                     defer { continuation.resume(returning: error) }
                     guard error == .success else {
@@ -54,7 +58,11 @@ class ShareController: ObservableObject {
                 kit.createShare(
                     path: itemServerRelativePath,
                     shareType: shareType.rawValue,
-                    shareWith: shareWith
+                    shareWith: shareWith,
+                    password: password,
+                    permissions: permissions,
+                    options: options,
+                    attributes: attributes
                 ) { account, share, data, error in
                     defer { continuation.resume(returning: error) }
                     guard error == .success else {