From 8965857ca0041d24fb5661ae58c08e7dd86738e5 Mon Sep 17 00:00:00 2001 From: automated-signal <37887102+automated-signal@users.noreply.github.com> Date: Mon, 16 Sep 2024 13:15:49 -0500 Subject: [PATCH] Show groups you've left in search Co-authored-by: Scott Nonnenberg --- ts/util/filterAndSortConversations.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ts/util/filterAndSortConversations.ts b/ts/util/filterAndSortConversations.ts index 3be48eaea78c..d85abd7c82e8 100644 --- a/ts/util/filterAndSortConversations.ts +++ b/ts/util/filterAndSortConversations.ts @@ -121,10 +121,6 @@ function searchConversations( const phoneNumber = parseAndFormatPhoneNumber(searchTerm, regionCode); - const currentConversations = conversations.filter(conversation => { - return !conversation.left; - }); - // Escape the search term let extendedSearchTerm = removeDiacritics(searchTerm); @@ -133,7 +129,7 @@ function searchConversations( extendedSearchTerm += ` | ${phoneNumber.e164}`; } - const index = getCachedFuseIndex(currentConversations, FUSE_OPTIONS); + const index = getCachedFuseIndex(conversations, FUSE_OPTIONS); return index.search(extendedSearchTerm); }