Increased fuse search distance from 100 (default) to 150

This commit is contained in:
Alvaro 2022-08-08 16:41:20 -06:00 committed by GitHub
parent 46428b5af6
commit aa2bb68d4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View file

@ -19,6 +19,9 @@ const FUSE_OPTIONS: Fuse.IFuseOptions<ConversationType> = {
useExtendedSearch: true,
// We sort manually anyway
shouldSort: true,
// the default of 100 is not enough to catch a word at the end of a convo/group title
// 150 is about right
distance: 150,
keys: [
{
name: 'searchableTitle',