insert_displayname -> insert_mention
This commit is contained in:
parent
6d7bff83ca
commit
08cc0c421d
3 changed files with 3 additions and 3 deletions
|
@ -298,7 +298,7 @@ module.exports = React.createClass({
|
|||
onEmoteSenderClick: function(event) {
|
||||
const mxEvent = this.props.mxEvent;
|
||||
dis.dispatch({
|
||||
action: 'insert_displayname',
|
||||
action: 'insert_mention',
|
||||
user_id: mxEvent.getSender(),
|
||||
});
|
||||
},
|
||||
|
|
|
@ -359,7 +359,7 @@ module.exports = withMatrixClient(React.createClass({
|
|||
onSenderProfileClick: function(event) {
|
||||
const mxEvent = this.props.mxEvent;
|
||||
dis.dispatch({
|
||||
action: 'insert_displayname',
|
||||
action: 'insert_mention',
|
||||
user_id: mxEvent.getSender(),
|
||||
});
|
||||
},
|
||||
|
|
|
@ -285,7 +285,7 @@ export default class MessageComposerInput extends React.Component {
|
|||
case 'focus_composer':
|
||||
editor.focus();
|
||||
break;
|
||||
case 'insert_displayname': {
|
||||
case 'insert_mention': {
|
||||
// Pretend that we've autocompleted this user because keeping two code
|
||||
// paths for inserting a user pill is not fun
|
||||
const selection = this.state.editorState.getSelection();
|
||||
|
|
Loading…
Reference in a new issue