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 @Singleton
class AppStateHandler @Inject constructor( class AppStateHandler @Inject constructor(
private val sessionObservableStore: ActiveSessionObservableStore, private val sessionObservableStore: ActiveSessionObservableStore,
private val homeRoomListStore: HomeRoomListObservableStore, private val homeRoomListObservableStore: HomeRoomListObservableStore,
private val selectedGroupStore: SelectedGroupStore) : LifecycleObserver { private val selectedGroupStore: SelectedGroupStore) : LifecycleObserver {
private val compositeDisposable = CompositeDisposable() private val compositeDisposable = CompositeDisposable()
@ -92,7 +92,7 @@ class AppStateHandler @Inject constructor(
} }
) )
.subscribe { .subscribe {
homeRoomListStore.post(it) homeRoomListObservableStore.post(it)
} }
.addTo(compositeDisposable) .addTo(compositeDisposable)
} }

View file

@ -37,7 +37,7 @@ import timber.log.Timber
class RoomListViewModel @AssistedInject constructor(@Assisted initialState: RoomListViewState, class RoomListViewModel @AssistedInject constructor(@Assisted initialState: RoomListViewState,
private val session: Session, private val session: Session,
private val homeRoomListObservableSource: HomeRoomListObservableStore, private val homeRoomListObservableStore: HomeRoomListObservableStore,
private val alphabeticalRoomComparator: AlphabeticalRoomComparator, private val alphabeticalRoomComparator: AlphabeticalRoomComparator,
private val chronologicalRoomComparator: ChronologicalRoomComparator) private val chronologicalRoomComparator: ChronologicalRoomComparator)
: VectorViewModel<RoomListViewState>(initialState) { : VectorViewModel<RoomListViewState>(initialState) {
@ -101,7 +101,7 @@ class RoomListViewModel @AssistedInject constructor(@Assisted initialState: Room
} }
private fun observeRoomSummaries() { private fun observeRoomSummaries() {
homeRoomListObservableSource homeRoomListObservableStore
.observe() .observe()
.observeOn(Schedulers.computation()) .observeOn(Schedulers.computation())
.map { .map {
@ -111,7 +111,7 @@ class RoomListViewModel @AssistedInject constructor(@Assisted initialState: Room
copy(asyncRooms = asyncRooms) copy(asyncRooms = asyncRooms)
} }
homeRoomListObservableSource homeRoomListObservableStore
.observe() .observe()
.observeOn(Schedulers.computation()) .observeOn(Schedulers.computation())
.map { buildRoomSummaries(it) } .map { buildRoomSummaries(it) }