insert_displayname -> insert_mention

This commit is contained in:
Luke Barnard 2017-07-20 18:02:54 +01:00
parent 6d7bff83ca
commit 08cc0c421d
3 changed files with 3 additions and 3 deletions

View file

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

View file

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

View file

@ -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();