diff --git a/app/src/main/java/com/nextcloud/talk/openconversations/ListOpenConversationsActivity.kt b/app/src/main/java/com/nextcloud/talk/openconversations/ListOpenConversationsActivity.kt index 002b2d1e6..10380f941 100644 --- a/app/src/main/java/com/nextcloud/talk/openconversations/ListOpenConversationsActivity.kt +++ b/app/src/main/java/com/nextcloud/talk/openconversations/ListOpenConversationsActivity.kt @@ -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() }