Merge pull request #7371 from hayaksi1/fix/5428-send-to-room-subtitle

Show the alias or the direct message user's Matrix ID in the room picker
This commit is contained in:
Benoit Marty
2026-08-11 15:59:29 +02:00
committed by GitHub
16 changed files with 129 additions and 23 deletions
@@ -31,6 +31,7 @@ fun aSelectRoomInfo(
canonicalAlias: RoomAlias? = null,
avatarUrl: String? = null,
heroes: ImmutableList<MatrixUser> = persistentListOf(),
isDm: Boolean = false,
isTombstoned: Boolean = false,
) = SelectRoomInfo(
roomId = roomId,
@@ -38,5 +39,6 @@ fun aSelectRoomInfo(
canonicalAlias = canonicalAlias,
avatarUrl = avatarUrl,
heroes = heroes,
isDm = isDm,
isTombstoned = isTombstoned,
)
@@ -23,6 +23,7 @@ data class SelectRoomInfo(
val canonicalAlias: RoomAlias?,
val avatarUrl: String?,
val heroes: ImmutableList<MatrixUser>,
val isDm: Boolean,
val isTombstoned: Boolean,
) {
fun getAvatarData(size: AvatarSize) = AvatarData(
@@ -41,5 +42,6 @@ fun RoomInfo.toSelectRoomInfo() = SelectRoomInfo(
avatarUrl = avatarUrl,
heroes = heroes,
canonicalAlias = canonicalAlias,
isDm = isDm,
isTombstoned = successorRoom != null,
)