Try some stuff on room list and avatar...
This commit is contained in:
parent
fcf7e8d7f1
commit
14992cb63a
17 changed files with 230 additions and 12 deletions
|
|
@ -18,7 +18,7 @@ sealed interface RoomSummary {
|
|||
|
||||
data class RoomSummaryDetails(
|
||||
val roomId: RoomId,
|
||||
val name: String?,
|
||||
val name: String,
|
||||
val isDirect: Boolean,
|
||||
val avatarURLString: String?,
|
||||
val lastMessage: CharSequence?,
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ internal class RustRoomSummaryDataSource(
|
|||
return RoomSummary.Filled(
|
||||
details = RoomSummaryDetails(
|
||||
roomId = RoomId(identifier),
|
||||
name = room.name(),
|
||||
name = room.name() ?: identifier,
|
||||
isDirect = room.isDm() ?: false,
|
||||
avatarURLString = room.fullRoom()?.avatarUrl(),
|
||||
unreadNotificationCount = room.unreadNotifications().notificationCount(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue