This commit is contained in:
Benoit Marty 2022-12-22 18:28:44 +01:00
parent 86444807da
commit 516e491af2
4 changed files with 8 additions and 3 deletions

View file

@ -65,6 +65,11 @@ class MatrixRoom(
return slidingSyncRoom.name()
}
val bestName: String
get() {
return name?.takeIf { it.isNotEmpty() } ?: room.id()
}
val displayName: String
get() {
return room.displayName()