Timeline: use val instead of fun for flows
This commit is contained in:
parent
c0106a692c
commit
3aa5cce8dc
6 changed files with 27 additions and 44 deletions
|
|
@ -27,8 +27,8 @@ interface MatrixTimeline {
|
|||
val canBackPaginate: Boolean
|
||||
)
|
||||
|
||||
fun paginationState(): StateFlow<PaginationState>
|
||||
fun timelineItems(): Flow<List<MatrixTimelineItem>>
|
||||
val paginationState: StateFlow<PaginationState>
|
||||
val timelineItems: Flow<List<MatrixTimelineItem>>
|
||||
|
||||
suspend fun paginateBackwards(requestSize: Int, untilNumberOfItems: Int): Result<Unit>
|
||||
suspend fun fetchDetailsForEvent(eventId: EventId): Result<Unit>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue