mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-26 19:36:08 +03:00
Expose directUserId in RoomSummary
This commit is contained in:
parent
288aed3252
commit
e467e2ca08
2 changed files with 2 additions and 0 deletions
|
@ -36,6 +36,7 @@ data class RoomSummary constructor(
|
||||||
val canonicalAlias: String? = null,
|
val canonicalAlias: String? = null,
|
||||||
val aliases: List<String> = emptyList(),
|
val aliases: List<String> = emptyList(),
|
||||||
val isDirect: Boolean = false,
|
val isDirect: Boolean = false,
|
||||||
|
val directUserId: String? = null,
|
||||||
val joinedMembersCount: Int? = 0,
|
val joinedMembersCount: Int? = 0,
|
||||||
val invitedMembersCount: Int? = 0,
|
val invitedMembersCount: Int? = 0,
|
||||||
val latestPreviewableEvent: TimelineEvent? = null,
|
val latestPreviewableEvent: TimelineEvent? = null,
|
||||||
|
|
|
@ -43,6 +43,7 @@ internal class RoomSummaryMapper @Inject constructor(private val timelineEventMa
|
||||||
topic = roomSummaryEntity.topic ?: "",
|
topic = roomSummaryEntity.topic ?: "",
|
||||||
avatarUrl = roomSummaryEntity.avatarUrl ?: "",
|
avatarUrl = roomSummaryEntity.avatarUrl ?: "",
|
||||||
isDirect = roomSummaryEntity.isDirect,
|
isDirect = roomSummaryEntity.isDirect,
|
||||||
|
directUserId = roomSummaryEntity.directUserId ?: "",
|
||||||
latestPreviewableEvent = latestEvent,
|
latestPreviewableEvent = latestEvent,
|
||||||
joinedMembersCount = roomSummaryEntity.joinedMembersCount,
|
joinedMembersCount = roomSummaryEntity.joinedMembersCount,
|
||||||
invitedMembersCount = roomSummaryEntity.invitedMembersCount,
|
invitedMembersCount = roomSummaryEntity.invitedMembersCount,
|
||||||
|
|
Loading…
Reference in a new issue