mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-02 06:06:57 +02:00
Display additional command content in suggestion list
This commit is contained in:
@@ -25,12 +25,12 @@ enum CompletionSuggestionViewModelResult {
|
||||
}
|
||||
|
||||
enum CompletionSuggestionViewStateItem: Identifiable {
|
||||
case command(name: String)
|
||||
case command(name: String, parametersFormat: String, description: String)
|
||||
case user(id: String, avatar: AvatarInputProtocol?, displayName: String?)
|
||||
|
||||
var id: String {
|
||||
switch self {
|
||||
case .command(let name):
|
||||
case .command(let name, _, _):
|
||||
return name
|
||||
case .user(let id, _, _):
|
||||
return id
|
||||
|
||||
Reference in New Issue
Block a user