Make user autocomplete query search beyond prefix

This commit is contained in:
Germain Souquet 2021-03-31 11:41:22 +01:00
parent b68fabb44b
commit 377b6c8a05

View file

@ -56,7 +56,7 @@ export default class UserProvider extends AutocompleteProvider {
this.matcher = new QueryMatcher([], {
keys: ['name'],
funcs: [obj => obj.userId.slice(1)], // index by user id minus the leading '@'
shouldMatchPrefix: true,
shouldMatchPrefix: false,
shouldMatchWordsOnly: false,
});