1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-28 15:22:05 +03:00

Merge pull request #1177 from matrix-org/luke/fix-rte-prefix-matching

Only match users by matchgin displayname or user ID prefixes
This commit is contained in:
Luke Barnard
2017-07-04 17:09:39 +01:00
committed by GitHub
2 changed files with 10 additions and 3 deletions

View File

@ -37,10 +37,11 @@ export default class UserProvider extends AutocompleteProvider {
constructor() {
super(USER_REGEX, {
keys: ['name', 'userId'],
keys: ['name'],
});
this.matcher = new FuzzyMatcher([], {
keys: ['name', 'userId'],
keys: ['name'],
shouldMatchPrefix: true,
});
}