mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 17:35:54 +03:00
Rename member
This commit is contained in:
parent
8be8cc9ef7
commit
b6594599c4
2 changed files with 5 additions and 5 deletions
|
@ -42,7 +42,7 @@ import javax.inject.Singleton
|
|||
@Singleton
|
||||
class AppStateHandler @Inject constructor(
|
||||
private val sessionObservableStore: ActiveSessionObservableStore,
|
||||
private val homeRoomListStore: HomeRoomListObservableStore,
|
||||
private val homeRoomListObservableStore: HomeRoomListObservableStore,
|
||||
private val selectedGroupStore: SelectedGroupStore) : LifecycleObserver {
|
||||
|
||||
private val compositeDisposable = CompositeDisposable()
|
||||
|
@ -92,7 +92,7 @@ class AppStateHandler @Inject constructor(
|
|||
}
|
||||
)
|
||||
.subscribe {
|
||||
homeRoomListStore.post(it)
|
||||
homeRoomListObservableStore.post(it)
|
||||
}
|
||||
.addTo(compositeDisposable)
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ import timber.log.Timber
|
|||
|
||||
class RoomListViewModel @AssistedInject constructor(@Assisted initialState: RoomListViewState,
|
||||
private val session: Session,
|
||||
private val homeRoomListObservableSource: HomeRoomListObservableStore,
|
||||
private val homeRoomListObservableStore: HomeRoomListObservableStore,
|
||||
private val alphabeticalRoomComparator: AlphabeticalRoomComparator,
|
||||
private val chronologicalRoomComparator: ChronologicalRoomComparator)
|
||||
: VectorViewModel<RoomListViewState>(initialState) {
|
||||
|
@ -101,7 +101,7 @@ class RoomListViewModel @AssistedInject constructor(@Assisted initialState: Room
|
|||
}
|
||||
|
||||
private fun observeRoomSummaries() {
|
||||
homeRoomListObservableSource
|
||||
homeRoomListObservableStore
|
||||
.observe()
|
||||
.observeOn(Schedulers.computation())
|
||||
.map {
|
||||
|
@ -111,7 +111,7 @@ class RoomListViewModel @AssistedInject constructor(@Assisted initialState: Room
|
|||
copy(asyncRooms = asyncRooms)
|
||||
}
|
||||
|
||||
homeRoomListObservableSource
|
||||
homeRoomListObservableStore
|
||||
.observe()
|
||||
.observeOn(Schedulers.computation())
|
||||
.map { buildRoomSummaries(it) }
|
||||
|
|
Loading…
Reference in a new issue