Fix reported crash.
https://github.com/element-hq/element-x-android-rageshakes/issues/8517
This commit is contained in:
parent
8ca0e34a3a
commit
d799fa3b5a
1 changed files with 6 additions and 1 deletions
|
|
@ -138,7 +138,12 @@ class EditDefaultNotificationSettingPresenter(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
// locale sensitive sorting
|
// locale sensitive sorting
|
||||||
.sortedWith(compareBy(Collator.getInstance()) { roomSummary -> roomSummary.name })
|
.sortedWith(
|
||||||
|
compareBy(Collator.getInstance()) { roomSummary ->
|
||||||
|
// Collator does not handle null values, so we provide a fallback
|
||||||
|
roomSummary.name ?: roomSummary.roomId.value
|
||||||
|
}
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun CoroutineScope.setDefaultNotificationMode(mode: RoomNotificationMode, action: MutableState<AsyncAction<Unit>>) = launch {
|
private fun CoroutineScope.setDefaultNotificationMode(mode: RoomNotificationMode, action: MutableState<AsyncAction<Unit>>) = launch {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue