mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 03:36:07 +03:00
Focus the composer view on file upload
This commit is contained in:
parent
86a6037a12
commit
cecd2cbd71
1 changed files with 3 additions and 0 deletions
|
@ -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 (file.type) {
|
||||
content.info.mimetype = file.type;
|
||||
|
|
Loading…
Reference in a new issue