Prevent crash with duplicate room suggestion
If two rooms have the same canonical alias, e.g. the recently tombstoned and upgraded #foundation-office:matrix.org, typing `#foun` into the composer could cause the app to crash. This avoids that by using the (hopefully) globally unique room id as the key instead. Signed-off-by: Joe Groocock <me@frebib.net>
This commit is contained in:
parent
f344a1282c
commit
7f3ebbb85d
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ fun SuggestionsPickerView(
|
|||
when (suggestion) {
|
||||
is ResolvedSuggestion.AtRoom -> "@room"
|
||||
is ResolvedSuggestion.Member -> suggestion.roomMember.userId.value
|
||||
is ResolvedSuggestion.Alias -> suggestion.roomAlias.value
|
||||
is ResolvedSuggestion.Alias -> suggestion.roomSummary.roomId.value
|
||||
}
|
||||
}
|
||||
) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue