Strip (IRC) when clicking on username

Fixes vector-im/riot-web#2072.

Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
pull/21833/head
Johannes Löthberg 2016-12-03 01:20:50 +01:00
parent 81e429eb14
commit f321c6c346
1 changed files with 1 additions and 1 deletions

View File

@ -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)', ''),
});
},