Re-add removal of (IRC) suffix

This commit is contained in:
Luke Barnard 2017-07-20 18:04:12 +01:00
parent 08cc0c421d
commit bac22cfb7c

View file

@ -290,7 +290,7 @@ export default class MessageComposerInput extends React.Component {
// paths for inserting a user pill is not fun // paths for inserting a user pill is not fun
const selection = this.state.editorState.getSelection(); const selection = this.state.editorState.getSelection();
const member = this.props.room.getMember(payload.user_id); const member = this.props.room.getMember(payload.user_id);
const completion = member ? member.name : payload.user_id; const completion = member ? member.name.replace(' (IRC)', '') : payload.user_id;
this.setDisplayedCompletion({ this.setDisplayedCompletion({
completion, completion,
selection, selection,