mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 04:55:48 +03:00
Fix suggestion labels for sharees
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
db20e44850
commit
66f77233a8
1 changed files with 7 additions and 1 deletions
|
@ -48,6 +48,12 @@ class ShareeSuggestionsDataSource: SuggestionsDataSource {
|
||||||
}
|
}
|
||||||
|
|
||||||
private func suggestionsFromSharees(_ sharees: [NKSharee]) -> [Suggestion] {
|
private func suggestionsFromSharees(_ sharees: [NKSharee]) -> [Suggestion] {
|
||||||
sharees.map { Suggestion(imageName: "person.fill", displayText: $0.name, data: $0) }
|
return sharees.map {
|
||||||
|
Suggestion(
|
||||||
|
imageName: "person.fill",
|
||||||
|
displayText: $0.label.isEmpty ? $0.name : $0.label,
|
||||||
|
data: $0
|
||||||
|
)
|
||||||
|
}
|
||||||
} // TODO: Improve img
|
} // TODO: Improve img
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue