1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-20 16:22:28 +03:00

Merge pull request #1992 from matrix-org/t3chguy/focus_rte_after_when_uploadingFile

Upload File confirmation modal steals focus, send it back to composer
This commit is contained in:
Michael Telatynski
2018-06-22 10:56:17 +01:00
committed by GitHub

View File

@@ -913,6 +913,8 @@ module.exports = React.createClass({
},
uploadFile: async function(file) {
dis.dispatch({action: 'focus_composer'});
if (MatrixClientPeg.get().isGuest()) {
dis.dispatch({action: 'view_set_mxid'});
return;