Add MatrixRoomInfo.rawName.
This commit is contained in:
parent
0b9724af84
commit
12ad232ea8
3 changed files with 6 additions and 0 deletions
|
|
@ -27,7 +27,10 @@ import kotlinx.collections.immutable.ImmutableMap
|
|||
@Immutable
|
||||
data class MatrixRoomInfo(
|
||||
val id: RoomId,
|
||||
/** The room's name from the room state event if received from sync, or one that's been computed otherwise. */
|
||||
val name: String?,
|
||||
/** Room name as defined by the room state event only. */
|
||||
val rawName: String?,
|
||||
val topic: String?,
|
||||
val avatarUrl: String?,
|
||||
val isDirect: Boolean,
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ class MatrixRoomInfoMapper(
|
|||
return MatrixRoomInfo(
|
||||
id = RoomId(it.id),
|
||||
name = it.displayName,
|
||||
rawName = it.rawName,
|
||||
topic = it.topic,
|
||||
avatarUrl = it.avatarUrl,
|
||||
isDirect = it.isDirect,
|
||||
|
|
|
|||
|
|
@ -735,6 +735,7 @@ data class EndPollInvocation(
|
|||
fun aRoomInfo(
|
||||
id: RoomId = A_ROOM_ID,
|
||||
name: String? = A_ROOM_NAME,
|
||||
rawName: String? = name,
|
||||
topic: String? = "A topic",
|
||||
avatarUrl: String? = AN_AVATAR_URL,
|
||||
isDirect: Boolean = false,
|
||||
|
|
@ -759,6 +760,7 @@ fun aRoomInfo(
|
|||
) = MatrixRoomInfo(
|
||||
id = id,
|
||||
name = name,
|
||||
rawName = rawName,
|
||||
topic = topic,
|
||||
avatarUrl = avatarUrl,
|
||||
isDirect = isDirect,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue