Renames roomsPagedList

This commit is contained in:
ericdecanini 2022-09-20 18:32:59 -04:00
parent fe1e74fa06
commit 1a93bbf92f
3 changed files with 3 additions and 3 deletions

View file

@ -152,7 +152,7 @@ class HomeRoomListFragment :
headersController.submitData(it)
}
roomListViewModel.onEach(HomeRoomListViewState::roomsLivePagedList) { roomsList ->
roomListViewModel.onEach(HomeRoomListViewState::roomsPagedList) { roomsList ->
roomsList?.let {
roomsController.submitList(it)
if (it.isEmpty()) {

View file

@ -259,7 +259,7 @@ class HomeRoomListViewModel @AssistedInject constructor(
liveResults.livePagedList
.asFlow()
.onEach {
setState { copy(roomsLivePagedList = it) }
setState { copy(roomsPagedList = it) }
}
.flowOn(Dispatchers.Default)
.launchIn(viewModelScope)

View file

@ -25,5 +25,5 @@ import org.matrix.android.sdk.api.session.room.model.RoomSummary
data class HomeRoomListViewState(
val state: StateView.State = StateView.State.Content,
val headersData: RoomsHeadersData = RoomsHeadersData(),
val roomsLivePagedList: PagedList<RoomSummary>? = null,
val roomsPagedList: PagedList<RoomSummary>? = null,
) : MavericksState