mirror of
https://github.com/nextcloud/talk-android
synced 2025-01-18 21:18:15 +00: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)
|
||||
}
|
||||
binding.editText.doOnTextChanged { text, _, _, count ->
|
||||
openConversationsViewModel.updateSearchTerm(text.toString())
|
||||
openConversationsViewModel.fetchConversations()
|
||||
if (!text.isNullOrBlank()) {
|
||||
openConversationsViewModel.updateSearchTerm(text.toString())
|
||||
openConversationsViewModel.fetchConversations()
|
||||
}
|
||||
}
|
||||
|
||||
initObservers()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user