Add converter method fro nksharee to suggestion
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Tue, 2 Apr 2024 10:18:42 +0000 (18:18 +0800)
committerClaudio Cambra <claudio.cambra@nextcloud.com>
Wed, 17 Apr 2024 08:39:03 +0000 (16:39 +0800)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareeSuggestionsDataSource.swift

index 17a7140b57de931136b20d5faa12adccd8b559db..5c84f5bd14c04807583a9669b3052cb279cf0a73 100644 (file)
@@ -37,4 +37,8 @@ class ShareeSuggestionsDataSource: SuggestionsDataSource {
             )
         }
     }
+
+    private func suggestionsFromSharees(_ sharees: [NKSharee]) -> [Suggestion] {
+        sharees.map { Suggestion(imageName: "person.fill", displayText: $0.name, data: $0) }
+    } // TODO: Improve img
 }