From 2a3694d8b72c80a1bec0720f27bd18ea9943bea3 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 20 Apr 2021 18:12:11 +0200 Subject: [PATCH] Cleanup --- .../vector/app/features/userdirectory/UserListViewModel.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/userdirectory/UserListViewModel.kt b/vector/src/main/java/im/vector/app/features/userdirectory/UserListViewModel.kt index a85b2cd95f..77f6c3f4eb 100644 --- a/vector/src/main/java/im/vector/app/features/userdirectory/UserListViewModel.kt +++ b/vector/src/main/java/im/vector/app/features/userdirectory/UserListViewModel.kt @@ -29,7 +29,6 @@ import im.vector.app.core.extensions.toggle import im.vector.app.core.platform.VectorViewModel import io.reactivex.Single import io.reactivex.android.schedulers.AndroidSchedulers -import io.reactivex.disposables.Disposable import org.matrix.android.sdk.api.MatrixPatterns import org.matrix.android.sdk.api.session.Session import org.matrix.android.sdk.api.session.profile.ProfileService @@ -50,8 +49,6 @@ class UserListViewModel @AssistedInject constructor(@Assisted initialState: User private val knownUsersSearch = BehaviorRelay.create() private val directoryUsersSearch = BehaviorRelay.create() - private var currentUserSearchDisposable: Disposable? = null - @AssistedFactory interface Factory { fun create(initialState: UserListViewState): UserListViewModel @@ -115,8 +112,6 @@ class UserListViewModel @AssistedInject constructor(@Assisted initialState: User copy(knownUsers = async) } - currentUserSearchDisposable?.dispose() - directoryUsersSearch .debounce(300, TimeUnit.MILLISECONDS) .switchMapSingle { search ->