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 ->