mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 19:49:33 +01:00
sort conversations only if text is present
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
298cf3a249
commit
006cfae6f1
@ -70,10 +70,11 @@ class ListOpenConversationsActivity : BaseActivity() {
|
|||||||
handleSearchUI(searching)
|
handleSearchUI(searching)
|
||||||
}
|
}
|
||||||
binding.editText.doOnTextChanged { text, _, _, count ->
|
binding.editText.doOnTextChanged { text, _, _, count ->
|
||||||
openConversationsViewModel.updateSearchTerm(text.toString())
|
if (!text.isNullOrBlank()) {
|
||||||
openConversationsViewModel.fetchConversations()
|
openConversationsViewModel.updateSearchTerm(text.toString())
|
||||||
|
openConversationsViewModel.fetchConversations()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
initObservers()
|
initObservers()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user