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) 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()) {

View File

@ -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)

View File

@ -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