Rename member

This commit is contained in:
Benoit Marty 2019-10-24 10:53:19 +02:00
parent 8be8cc9ef7
commit b6594599c4
2 changed files with 5 additions and 5 deletions

View file

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

View file

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