getTimeline

abstract fun <T> getTimeline(roomId: RoomId, decryptionTimeout: Duration = INFINITE, fetchTimeout: Duration = 1.minutes, limitPerFetch: Long = 20, loadingSize: Long = 20, transformer: suspend (Flow<TimelineEvent>) -> T): Timeline<T>

Returns a Timeline for a room.

Parameters

loadingSize

When using Timeline.init, Timeline.loadBefore or Timeline.loadAfter this is the max size of events, that are added to the timeline. This refers to events found locally. Use limitPerFetch, when you want to control the size of events requests from the server.