From f321c6c346b31b47d44a7976537978a56c6790c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20L=C3=B6thberg?= Date: Sat, 3 Dec 2016 01:20:50 +0100 Subject: [PATCH] Strip (IRC) when clicking on username MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes vector-im/riot-web#2072. Signed-off-by: Johannes Löthberg --- src/components/views/rooms/EventTile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/rooms/EventTile.js b/src/components/views/rooms/EventTile.js index 410ad2b953..8dd84f9364 100644 --- a/src/components/views/rooms/EventTile.js +++ b/src/components/views/rooms/EventTile.js @@ -351,7 +351,7 @@ module.exports = WithMatrixClient(React.createClass({ var mxEvent = this.props.mxEvent; dispatcher.dispatch({ action: 'insert_displayname', - displayname: mxEvent.sender ? mxEvent.sender.name : mxEvent.getSender(), + displayname: (mxEvent.sender ? mxEvent.sender.name : mxEvent.getSender()).replace(' (IRC)', ''), }); },