Make TimelineRoomInfo stable
This commit is contained in:
parent
2d9b034940
commit
47e664e5d1
3 changed files with 3 additions and 3 deletions
|
|
@ -105,7 +105,7 @@ class PinnedMessagesListPresenter(
|
||||||
// We do not care about the call state here.
|
// We do not care about the call state here.
|
||||||
roomCallState = aStandByCallState(),
|
roomCallState = aStandByCallState(),
|
||||||
// don't compute this value or the pin icon will be shown
|
// don't compute this value or the pin icon will be shown
|
||||||
pinnedEventIds = emptyList(),
|
pinnedEventIds = persistentListOf(),
|
||||||
typingNotificationState = TypingNotificationState(
|
typingNotificationState = TypingNotificationState(
|
||||||
renderTypingNotifications = false,
|
renderTypingNotifications = false,
|
||||||
typingMembers = persistentListOf(),
|
typingMembers = persistentListOf(),
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@ data class TimelineRoomInfo(
|
||||||
val userHasPermissionToSendMessage: Boolean,
|
val userHasPermissionToSendMessage: Boolean,
|
||||||
val userHasPermissionToSendReaction: Boolean,
|
val userHasPermissionToSendReaction: Boolean,
|
||||||
val roomCallState: RoomCallState,
|
val roomCallState: RoomCallState,
|
||||||
val pinnedEventIds: List<EventId>,
|
val pinnedEventIds: ImmutableList<EventId>,
|
||||||
val typingNotificationState: TypingNotificationState,
|
val typingNotificationState: TypingNotificationState,
|
||||||
val predecessorRoom: PredecessorRoom?,
|
val predecessorRoom: PredecessorRoom?,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -259,7 +259,7 @@ internal fun aTimelineRoomInfo(
|
||||||
userHasPermissionToSendMessage = userHasPermissionToSendMessage,
|
userHasPermissionToSendMessage = userHasPermissionToSendMessage,
|
||||||
userHasPermissionToSendReaction = true,
|
userHasPermissionToSendReaction = true,
|
||||||
roomCallState = aStandByCallState(),
|
roomCallState = aStandByCallState(),
|
||||||
pinnedEventIds = pinnedEventIds,
|
pinnedEventIds = pinnedEventIds.toImmutableList(),
|
||||||
typingNotificationState = typingNotificationState,
|
typingNotificationState = typingNotificationState,
|
||||||
predecessorRoom = predecessorRoom,
|
predecessorRoom = predecessorRoom,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue