RoomList: change a bit the api of RoomSummaryDataSource
This commit is contained in:
parent
4656af6ce8
commit
ef8dc6ea7a
12 changed files with 78 additions and 92 deletions
|
|
@ -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?
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue