Upload File confirmation modal steals focus, send it back to composer

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2018-06-19 08:41:24 +01:00
parent 1352abf317
commit 6200c147a6
No known key found for this signature in database
GPG key ID: 3F879DA5AD802A5E

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;