RoomList: change a bit the api of RoomSummaryDataSource

This commit is contained in:
ganfra 2023-06-22 12:34:07 +02:00
parent 4656af6ce8
commit ef8dc6ea7a
12 changed files with 78 additions and 92 deletions

View file

@ -35,7 +35,6 @@ import java.io.Closeable
interface MatrixClient : Closeable {
val sessionId: SessionId
val roomSummaryDataSource: RoomSummaryDataSource
val invitesDataSource: RoomSummaryDataSource
val mediaLoader: MatrixMediaLoader
fun getRoom(roomId: RoomId): MatrixRoom?
fun findDM(userId: UserId): MatrixRoom?

View file

@ -28,6 +28,7 @@ interface RoomSummaryDataSource {
}
fun loadingState(): StateFlow<LoadingState>
fun roomSummaries(): StateFlow<List<RoomSummary>>
fun setSlidingSyncRange(range: IntRange)
fun roomList(): StateFlow<List<RoomSummary>>
fun inviteList(): StateFlow<List<RoomSummary>>
fun updateRoomListVisibleRange(range: IntRange)
}