mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 10:32:34 +00:00
Make TimelineRoomInfo stable
This commit is contained in:
committed by
Benoit Marty
parent
c494cb952a
commit
dbe9ab49b8
+1
-1
@@ -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(),
|
||||||
|
|||||||
+1
-1
@@ -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?,
|
||||||
)
|
)
|
||||||
|
|||||||
+1
-1
@@ -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,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user