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

Strip (IRC) when clicking on username
This commit is contained in:
Matthew Hodgson 2016-12-03 01:17:33 +00:00 committed by GitHub
commit 61cf08ca1b

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