Show groups you've left in search

This commit is contained in:
Scott Nonnenberg 2024-09-17 00:12:12 +10:00 committed by GitHub
parent 4230799e23
commit c2e7f30988
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);
}