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.
roomCallState = aStandByCallState(),
// don't compute this value or the pin icon will be shown
pinnedEventIds = emptyList(),
pinnedEventIds = persistentListOf(),
typingNotificationState = TypingNotificationState(
renderTypingNotifications = false,
typingMembers = persistentListOf(),

View File

@@ -77,7 +77,7 @@ data class TimelineRoomInfo(
val userHasPermissionToSendMessage: Boolean,
val userHasPermissionToSendReaction: Boolean,
val roomCallState: RoomCallState,
val pinnedEventIds: List<EventId>,
val pinnedEventIds: ImmutableList<EventId>,
val typingNotificationState: TypingNotificationState,
val predecessorRoom: PredecessorRoom?,
)

View File

@@ -259,7 +259,7 @@ internal fun aTimelineRoomInfo(
userHasPermissionToSendMessage = userHasPermissionToSendMessage,
userHasPermissionToSendReaction = true,
roomCallState = aStandByCallState(),
pinnedEventIds = pinnedEventIds,
pinnedEventIds = pinnedEventIds.toImmutableList(),
typingNotificationState = typingNotificationState,
predecessorRoom = predecessorRoom,
)