From 8777780928d3edacfefaacb3d7ed6e622eb54b0a Mon Sep 17 00:00:00 2001 From: Aviral Dasgupta Date: Tue, 16 Aug 2016 03:50:59 +0530 Subject: [PATCH] strip (IRC) suffix from tabcomplete entries fixes vector-im/vector-web#574 --- src/TabCompleteEntries.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TabCompleteEntries.js b/src/TabCompleteEntries.js index 4a28103210..2a8c7b383a 100644 --- a/src/TabCompleteEntries.js +++ b/src/TabCompleteEntries.js @@ -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'; }