Show groups you've left in search
Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
parent
4146b36307
commit
8965857ca0
1 changed files with 1 additions and 5 deletions
|
@ -121,10 +121,6 @@ function searchConversations(
|
||||||
|
|
||||||
const phoneNumber = parseAndFormatPhoneNumber(searchTerm, regionCode);
|
const phoneNumber = parseAndFormatPhoneNumber(searchTerm, regionCode);
|
||||||
|
|
||||||
const currentConversations = conversations.filter(conversation => {
|
|
||||||
return !conversation.left;
|
|
||||||
});
|
|
||||||
|
|
||||||
// Escape the search term
|
// Escape the search term
|
||||||
let extendedSearchTerm = removeDiacritics(searchTerm);
|
let extendedSearchTerm = removeDiacritics(searchTerm);
|
||||||
|
|
||||||
|
@ -133,7 +129,7 @@ function searchConversations(
|
||||||
extendedSearchTerm += ` | ${phoneNumber.e164}`;
|
extendedSearchTerm += ` | ${phoneNumber.e164}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
const index = getCachedFuseIndex(currentConversations, FUSE_OPTIONS);
|
const index = getCachedFuseIndex(conversations, FUSE_OPTIONS);
|
||||||
|
|
||||||
return index.search(extendedSearchTerm);
|
return index.search(extendedSearchTerm);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue