1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

Focus the composer view on file upload

This commit is contained in:
Andrew Morgan
2019-04-11 18:41:51 +01:00
parent 86a6037a12
commit cecd2cbd71

View File

@@ -450,6 +450,9 @@ export default class ContentMessages {
}, },
}; };
// Focus the composer view
dis.dispatch({action: 'focus_composer'})
// if we have a mime type for the file, add it to the message metadata // if we have a mime type for the file, add it to the message metadata
if (file.type) { if (file.type) {
content.info.mimetype = file.type; content.info.mimetype = file.type;