You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
fix Composer focus after twiddling with Replies
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -17,6 +17,7 @@ import React from 'react';
|
|||||||
import sdk from '../../../index';
|
import sdk from '../../../index';
|
||||||
import {_t} from '../../../languageHandler';
|
import {_t} from '../../../languageHandler';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
import dis from '../../../dispatcher';
|
||||||
import MatrixClientPeg from '../../../MatrixClientPeg';
|
import MatrixClientPeg from '../../../MatrixClientPeg';
|
||||||
import {wantsDateSeparator} from '../../../DateUtils';
|
import {wantsDateSeparator} from '../../../DateUtils';
|
||||||
import {MatrixEvent} from 'matrix-js-sdk';
|
import {MatrixEvent} from 'matrix-js-sdk';
|
||||||
@@ -131,6 +132,8 @@ export default class Reply extends React.Component {
|
|||||||
loadedEv: null,
|
loadedEv: null,
|
||||||
events,
|
events,
|
||||||
}, this.loadNextEvent);
|
}, this.loadNextEvent);
|
||||||
|
|
||||||
|
dis.dispatch({action: 'focus_composer'});
|
||||||
}
|
}
|
||||||
|
|
||||||
static getInReplyTo(ev) {
|
static getInReplyTo(ev) {
|
||||||
|
|||||||
Reference in New Issue
Block a user