mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Add debounce/minimum length for add user search (#387)
This functionality was already implemented, it just didn't have the right parameters configured for the user list presenter. Closes #109
This commit is contained in:
+5
-1
@@ -35,7 +35,11 @@ class AddPeoplePresenter @Inject constructor(
|
||||
|
||||
private val userListPresenter by lazy {
|
||||
userListPresenterFactory.create(
|
||||
UserListPresenterArgs(selectionMode = SelectionMode.Multiple),
|
||||
UserListPresenterArgs(
|
||||
selectionMode = SelectionMode.Multiple,
|
||||
minimumSearchLength = 3,
|
||||
searchDebouncePeriodMillis = UserListPresenterArgs.DEFAULT_DEBOUNCE
|
||||
),
|
||||
userListDataSource,
|
||||
dataStore.selectedUserListDataStore,
|
||||
)
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ class CreateRoomRootPresenter @Inject constructor(
|
||||
UserListPresenterArgs(
|
||||
selectionMode = SelectionMode.Single,
|
||||
minimumSearchLength = 3,
|
||||
searchDebouncePeriodMillis = 500,
|
||||
searchDebouncePeriodMillis = UserListPresenterArgs.DEFAULT_DEBOUNCE,
|
||||
),
|
||||
userListDataSource,
|
||||
userListDataStore,
|
||||
|
||||
Reference in New Issue
Block a user