mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Add comments
This commit is contained in:
+2
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user