From 8a2f440d79064d1eb04e5a9d14938ebdf2d95557 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Tue, 2 Apr 2024 18:18:42 +0800 Subject: [PATCH] Add converter method fro nksharee to suggestion Signed-off-by: Claudio Cambra --- .../FileProviderUIExt/ShareeSuggestionsDataSource.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareeSuggestionsDataSource.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareeSuggestionsDataSource.swift index 17a7140b5..5c84f5bd1 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareeSuggestionsDataSource.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareeSuggestionsDataSource.swift @@ -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 } -- 2.30.2