Show groups you've left in search

Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
automated-signal 2024-09-16 13:15:49 -05:00 committed by GitHub
parent 4146b36307
commit 8965857ca0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}