RoomList: change a bit the api of RoomSummaryDataSource
This commit is contained in:
-1
@@ -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?
|
||||
|
||||
+3
-2
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user