Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 5b1467a

Browse files
author
Luke Barnard
committed
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 element-hq/element-web#4495 related to element-hq/element-web#4794 cc @lampholder
1 parent 004cc42 commit 5b1467a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/autocomplete/UserProvider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default class UserProvider extends AutocompleteProvider {
4040
keys: ['name'],
4141
});
4242
this.matcher = new FuzzyMatcher([], {
43-
keys: ['name'],
43+
keys: ['name', 'userId'],
4444
shouldMatchPrefix: true,
4545
});
4646
}

0 commit comments

Comments
 (0)