1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-21 07:42:09 +03:00

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