From ab4b3d633c7169adb1833dc760c2638ef86e1281 Mon Sep 17 00:00:00 2001 From: rapterjet2004 Date: Wed, 13 Nov 2024 07:54:01 -0600 Subject: [PATCH] Fix behavior Signed-off-by: rapterjet2004 --- .../conversationlist/ConversationsListActivity.kt | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/conversationlist/ConversationsListActivity.kt b/app/src/main/java/com/nextcloud/talk/conversationlist/ConversationsListActivity.kt index 3a13a7f3f..c36283173 100644 --- a/app/src/main/java/com/nextcloud/talk/conversationlist/ConversationsListActivity.kt +++ b/app/src/main/java/com/nextcloud/talk/conversationlist/ConversationsListActivity.kt @@ -1144,8 +1144,17 @@ class ConversationsListActivity : private fun performFilterAndSearch(filter: String?) { if (filter!!.length >= SEARCH_MIN_CHARS) { clearMessageSearchResults() - adapter!!.setFilter(filter) - adapter!!.filterItems() + + if (hasFilterEnabled()) { + adapter?.updateDataSet(conversationItems) + adapter!!.setFilter(filter) + adapter!!.filterItems() + adapter?.updateDataSet(filterableConversationItems) + } else { + adapter!!.setFilter(filter) + adapter!!.filterItems() + } + if (isUnifiedSearchAvailable(currentUser!!.capabilities!!.spreedCapability!!)) { startMessageSearch(filter) }