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
|
|
@ -29,14 +29,14 @@ class FakeRoomSummaryDataSource : RoomSummaryDataSource {
|
|||
roomSummariesFlow.emit(roomSummaries)
|
||||
}
|
||||
|
||||
override fun roomSummaries(): StateFlow<List<RoomSummary>> {
|
||||
override fun roomList(): StateFlow<List<RoomSummary>> {
|
||||
return roomSummariesFlow
|
||||
}
|
||||
|
||||
var latestSlidingSyncRange: IntRange? = null
|
||||
private set
|
||||
|
||||
override fun setSlidingSyncRange(range: IntRange) {
|
||||
override fun updateRoomListVisibleRange(range: IntRange) {
|
||||
latestSlidingSyncRange = range
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue