Add comments
This commit is contained in:
parent
a1cc38f8e6
commit
1db8e2744e
1 changed files with 2 additions and 0 deletions
|
|
@ -55,11 +55,13 @@ class CreateRoomRootPresenter @Inject constructor() : Presenter<CreateRoomRootSt
|
||||||
}
|
}
|
||||||
|
|
||||||
LaunchedEffect(searchQuery) {
|
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)) {
|
searchResults.value = if (MatrixPatterns.isUserId(searchQuery)) {
|
||||||
persistentListOf(MatrixUser(UserId(searchQuery)))
|
persistentListOf(MatrixUser(UserId(searchQuery)))
|
||||||
} else {
|
} else {
|
||||||
persistentListOf()
|
persistentListOf()
|
||||||
}
|
}
|
||||||
|
// Perform the search asynchronously
|
||||||
if (searchQuery.isNotEmpty()) {
|
if (searchQuery.isNotEmpty()) {
|
||||||
searchResults.value = performSearch(searchQuery)
|
searchResults.value = performSearch(searchQuery)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue