Test TimelineView regarding "Jump to bottom" button.

This commit is contained in:
Benoit Marty 2024-04-29 10:07:20 +02:00
parent 683a593b50
commit 33f1cb4abf
2 changed files with 35 additions and 1 deletions

View file

@ -49,13 +49,14 @@ fun aTimelineState(
renderReadReceipts: Boolean = false,
timelineRoomInfo: TimelineRoomInfo = aTimelineRoomInfo(),
focusedEventIndex: Int = -1,
isLive: Boolean = true,
eventSink: (TimelineEvents) -> Unit = {},
) = TimelineState(
timelineItems = timelineItems,
timelineRoomInfo = timelineRoomInfo,
renderReadReceipts = renderReadReceipts,
newEventState = NewEventState.None,
isLive = true,
isLive = isLive,
focusedEventId = timelineItems.filterIsInstance<TimelineItem.Event>().getOrNull(focusedEventIndex)?.eventId,
focusRequestState = FocusRequestState.None,
eventSink = eventSink,