Renames roomsPagedList
This commit is contained in:
parent
fe1e74fa06
commit
1a93bbf92f
|
@ -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()) {
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue