strip (IRC) suffix from tabcomplete entries

fixes vector-im/vector-web#574
This commit is contained in:
Aviral Dasgupta 2016-08-16 03:50:59 +05:30
parent 2a3b0e85ea
commit 8777780928

View file

@ -94,7 +94,7 @@ CommandEntry.fromCommands = function(commandArray) {
class MemberEntry extends Entry {
constructor(member) {
super(member.name || member.userId);
super((member.name || member.userId).replace(' (IRC)', ''));
this.member = member;
this.kind = 'member';
}