You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +03:00
don't lose focus after a / command
This commit is contained in:
@@ -745,9 +745,10 @@ export default class MessageComposerInput extends React.Component {
|
||||
});
|
||||
}
|
||||
if (cmd.promise) {
|
||||
cmd.promise.then(function() {
|
||||
cmd.promise.then(()=>{
|
||||
console.log("Command success.");
|
||||
}, function(err) {
|
||||
this.refs.editor.focus();
|
||||
}, (err)=>{
|
||||
console.error("Command failure: %s", err);
|
||||
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
|
||||
Modal.createTrackedDialog('Server error', '', ErrorDialog, {
|
||||
|
||||
Reference in New Issue
Block a user