Room directory : fix pagination and add empty state.
This commit is contained in:
parent
4c5ae6ae4b
commit
e4c7118428
6 changed files with 91 additions and 60 deletions
|
|
@ -19,8 +19,8 @@ package io.element.android.libraries.matrix.api.roomdirectory
|
|||
import kotlinx.coroutines.flow.Flow
|
||||
|
||||
interface RoomDirectoryList {
|
||||
suspend fun filter(filter: String?, batchSize: Int)
|
||||
suspend fun loadMore()
|
||||
suspend fun filter(filter: String?, batchSize: Int): Result<Unit>
|
||||
suspend fun loadMore(): Result<Unit>
|
||||
suspend fun hasMoreToLoad(): Boolean
|
||||
val items: Flow<List<RoomDescription>>
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue