From b6594599c433b514d2b18f27ba452ce5b31506f5 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 24 Oct 2019 10:53:19 +0200 Subject: [PATCH] Rename member --- vector/src/main/java/im/vector/riotx/AppStateHandler.kt | 4 ++-- .../riotx/features/home/room/list/RoomListViewModel.kt | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/vector/src/main/java/im/vector/riotx/AppStateHandler.kt b/vector/src/main/java/im/vector/riotx/AppStateHandler.kt index d0301e2c9f..76cbb9ef94 100644 --- a/vector/src/main/java/im/vector/riotx/AppStateHandler.kt +++ b/vector/src/main/java/im/vector/riotx/AppStateHandler.kt @@ -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) } diff --git a/vector/src/main/java/im/vector/riotx/features/home/room/list/RoomListViewModel.kt b/vector/src/main/java/im/vector/riotx/features/home/room/list/RoomListViewModel.kt index b7a10edd49..686693c776 100644 --- a/vector/src/main/java/im/vector/riotx/features/home/room/list/RoomListViewModel.kt +++ b/vector/src/main/java/im/vector/riotx/features/home/room/list/RoomListViewModel.kt @@ -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(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) }