mirror of https://github.com/vector-im/riot-web
Strip (IRC) when clicking on username
Fixes vector-im/riot-web#2072. Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>pull/21833/head
parent
81e429eb14
commit
f321c6c346
|
@ -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)', ''),
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue