mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-25 19:05:56 +03:00
Renames roomsPagedList
This commit is contained in:
parent
fe1e74fa06
commit
1a93bbf92f
3 changed files with 3 additions and 3 deletions
|
@ -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 a new issue