RoomDirectory : address pr reviews

This commit is contained in:
ganfra
2024-03-29 11:37:00 +01:00
parent d94f4b0392
commit 5f8b74055d
6 changed files with 6 additions and 8 deletions
@@ -14,8 +14,6 @@
* limitations under the License.
*/
// TODO: Remove once https://youtrack.jetbrains.com/issue/KTIJ-19369 is fixed
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
id("io.element.android-compose-library")
alias(libs.plugins.anvil)
@@ -67,10 +67,10 @@ class RoomDirectoryPresenter @Inject constructor(
}
LaunchedEffect(searchQuery) {
if (searchQuery == null) return@LaunchedEffect
// debounce search query
delay(300)
// cancel load more right away
loadingMore = false
// debounce search query
delay(300)
roomDirectoryList.filter(searchQuery, 20)
}
LaunchedEffect(loadingMore) {