Make TimelineRoomInfo stable

This commit is contained in:
Benoit Marty 2025-10-09 18:07:35 +02:00 committed by Benoit Marty
parent 2d9b034940
commit 47e664e5d1
3 changed files with 3 additions and 3 deletions

View file

@ -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(),

View file

@ -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?,
) )

View file

@ -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,
) )