diff --git a/ts/test-both/state/selectors/conversations_test.ts b/ts/test-both/state/selectors/conversations_test.ts index 167a8fd88a7..b14abde8948 100644 --- a/ts/test-both/state/selectors/conversations_test.ts +++ b/ts/test-both/state/selectors/conversations_test.ts @@ -551,7 +551,8 @@ describe('both/state/selectors/conversations', () => { const result = getComposeContacts(state); const ids = result.map(contact => contact.id); - assert.deepEqual(ids, ['convo-1', 'convo-5']); + // NOTE: convo-6 matches because you can't write "Sharing" without "in" + assert.deepEqual(ids, ['convo-1', 'convo-5', 'convo-6']); }); }); diff --git a/ts/util/filterAndSortContacts.ts b/ts/util/filterAndSortContacts.ts index c47cc3219bc..1fbfd8d4147 100644 --- a/ts/util/filterAndSortContacts.ts +++ b/ts/util/filterAndSortContacts.ts @@ -9,6 +9,7 @@ const FUSE_OPTIONS: FuseOptions = { // A small-but-nonzero threshold lets us match parts of E164s better, and makes the // search a little more forgiving. threshold: 0.05, + tokenize: true, keys: [ { name: 'title',