Merge pull request #579 from kyrias/irc-strip-click

Strip (IRC) when clicking on username
pull/21833/head
Matthew Hodgson 2016-12-03 01:17:33 +00:00 committed by GitHub
commit 61cf08ca1b
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)', ''),
});
},