Add converter method fro nksharee to suggestion

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-04-02 18:18:42 +08:00
parent 3012976d9b
commit ad43c13882

View 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
}