mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 03:36:07 +03:00
Allow autocompletion when typing user IDs
Because we need to support tab completing `"@some_user"` if `@some_user` has a display name that is totally different and will therefore not match what the user typed in. This does have the disadvantage of a display name appearing (the pill) that isn't at all what the user typed in, but the autocomplete box and the tooltip should give enough information to let the user know what's going on. (e.g. typing `@kyr*tab*` and getting `Remmy`). This _does_ run contrary to vector-im/riot-web#4495 related to vector-im/riot-web#4794 cc @lampholder
This commit is contained in:
parent
004cc42cfc
commit
5b1467a4c9
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ export default class UserProvider extends AutocompleteProvider {
|
||||||
keys: ['name'],
|
keys: ['name'],
|
||||||
});
|
});
|
||||||
this.matcher = new FuzzyMatcher([], {
|
this.matcher = new FuzzyMatcher([], {
|
||||||
keys: ['name'],
|
keys: ['name', 'userId'],
|
||||||
shouldMatchPrefix: true,
|
shouldMatchPrefix: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue