1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

Remove query matcher shouldMatchPrefix support

This commit is contained in:
Germain Souquet
2021-03-31 18:21:02 +01:00
parent 377b6c8a05
commit c81847689a
3 changed files with 1 additions and 23 deletions

View File

@@ -56,7 +56,6 @@ 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: false,
shouldMatchWordsOnly: false,
});