mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-15 01:35:07 +08:00
Renames roomsPagedList
This commit is contained in:
parent
fe1e74fa06
commit
1a93bbf92f
@ -152,7 +152,7 @@ class HomeRoomListFragment :
|
|||||||
headersController.submitData(it)
|
headersController.submitData(it)
|
||||||
}
|
}
|
||||||
|
|
||||||
roomListViewModel.onEach(HomeRoomListViewState::roomsLivePagedList) { roomsList ->
|
roomListViewModel.onEach(HomeRoomListViewState::roomsPagedList) { roomsList ->
|
||||||
roomsList?.let {
|
roomsList?.let {
|
||||||
roomsController.submitList(it)
|
roomsController.submitList(it)
|
||||||
if (it.isEmpty()) {
|
if (it.isEmpty()) {
|
||||||
|
@ -259,7 +259,7 @@ class HomeRoomListViewModel @AssistedInject constructor(
|
|||||||
liveResults.livePagedList
|
liveResults.livePagedList
|
||||||
.asFlow()
|
.asFlow()
|
||||||
.onEach {
|
.onEach {
|
||||||
setState { copy(roomsLivePagedList = it) }
|
setState { copy(roomsPagedList = it) }
|
||||||
}
|
}
|
||||||
.flowOn(Dispatchers.Default)
|
.flowOn(Dispatchers.Default)
|
||||||
.launchIn(viewModelScope)
|
.launchIn(viewModelScope)
|
||||||
|
@ -25,5 +25,5 @@ import org.matrix.android.sdk.api.session.room.model.RoomSummary
|
|||||||
data class HomeRoomListViewState(
|
data class HomeRoomListViewState(
|
||||||
val state: StateView.State = StateView.State.Content,
|
val state: StateView.State = StateView.State.Content,
|
||||||
val headersData: RoomsHeadersData = RoomsHeadersData(),
|
val headersData: RoomsHeadersData = RoomsHeadersData(),
|
||||||
val roomsLivePagedList: PagedList<RoomSummary>? = null,
|
val roomsPagedList: PagedList<RoomSummary>? = null,
|
||||||
) : MavericksState
|
) : MavericksState
|
||||||
|
Loading…
Reference in New Issue
Block a user