You've already forked matrix-react-sdk
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:
@ -298,7 +298,7 @@ module.exports = React.createClass({
|
|||||||
onEmoteSenderClick: function(event) {
|
onEmoteSenderClick: function(event) {
|
||||||
const mxEvent = this.props.mxEvent;
|
const mxEvent = this.props.mxEvent;
|
||||||
dis.dispatch({
|
dis.dispatch({
|
||||||
action: 'insert_displayname',
|
action: 'insert_mention',
|
||||||
user_id: mxEvent.getSender(),
|
user_id: mxEvent.getSender(),
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -359,7 +359,7 @@ module.exports = withMatrixClient(React.createClass({
|
|||||||
onSenderProfileClick: function(event) {
|
onSenderProfileClick: function(event) {
|
||||||
const mxEvent = this.props.mxEvent;
|
const mxEvent = this.props.mxEvent;
|
||||||
dis.dispatch({
|
dis.dispatch({
|
||||||
action: 'insert_displayname',
|
action: 'insert_mention',
|
||||||
user_id: mxEvent.getSender(),
|
user_id: mxEvent.getSender(),
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -285,7 +285,7 @@ export default class MessageComposerInput extends React.Component {
|
|||||||
case 'focus_composer':
|
case 'focus_composer':
|
||||||
editor.focus();
|
editor.focus();
|
||||||
break;
|
break;
|
||||||
case 'insert_displayname': {
|
case 'insert_mention': {
|
||||||
// Pretend that we've autocompleted this user because keeping two code
|
// Pretend that we've autocompleted this user because keeping two code
|
||||||
// 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();
|
||||||
|
Reference in New Issue
Block a user