getTimelineEvents

open override fun getTimelineEvents(startFrom: EventId, roomId: RoomId, direction: GetEvents.Direction, decryptionTimeout: Duration, fetchTimeout: Duration, limitPerFetch: Long): Flow<Flow<TimelineEvent?>>

Returns a flow of timeline events wrapped in a flow, which emits, when there is a new timeline event at the end of the timeline.

To convert it to a list, toFlowList can be used or e.g. the events can be consumed manually.

The manual approach needs proper understanding of how flows work. For example: if the client is offline and there are 5 timeline events in store, but take(10) is used, then toList() will suspend.