Fixes after rebase

This commit is contained in:
Maxime NATUREL 2023-03-14 17:53:55 +01:00 committed by Florian Renaud
parent 09af485560
commit b20ea74a10
7 changed files with 109 additions and 37 deletions

View file

@ -58,11 +58,13 @@ class DefaultSelectUsersPresenter @Inject constructor() : SelectUsersPresenter {
}
LaunchedEffect(searchQuery) {
// Clear the search results before performing the search, manually add a fake result with the matrixId, if any
searchResults.value = if (MatrixPatterns.isUserId(searchQuery)) {
persistentListOf(MatrixUser(UserId(searchQuery)))
} else {
persistentListOf()
}
// Perform the search asynchronously
if (searchQuery.isNotEmpty()) {
searchResults.value = performSearch(searchQuery)
}