mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-14 16:25:05 +01:00
Fix search queries in contacts
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
a445a45213
commit
57600907db
@ -73,7 +73,7 @@ class ContactsViewModel constructor(
|
||||
}
|
||||
|
||||
fun setSearchQuery(query: CharSequence?) {
|
||||
filterMutableLiveData.postValue(query)
|
||||
filterMutableLiveData.value = query
|
||||
loadContacts()
|
||||
}
|
||||
|
||||
@ -134,7 +134,7 @@ class ContactsViewModel constructor(
|
||||
}
|
||||
|
||||
private fun loadContacts() {
|
||||
val searchQuery: String = if (filterLiveData.value.isNullOrBlank()) "" else filterLiveData.value.toString()
|
||||
val searchQuery: String = if (filterMutableLiveData.value.isNullOrBlank()) "" else filterMutableLiveData.value.toString()
|
||||
getContactsUseCase.invoke(viewModelScope, parametersOf(globalService.currentUserLiveData.value, groupConversation, searchQuery, conversationToken), object :
|
||||
UseCaseResponse<List<Participant>> {
|
||||
override suspend fun onSuccess(result: List<Participant>) {
|
||||
|
Loading…
Reference in New Issue
Block a user