From cecd2cbd71d87cffc3bd9925dc40d551414862f5 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Thu, 11 Apr 2019 18:41:51 +0100 Subject: [PATCH] Focus the composer view on file upload --- src/ContentMessages.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ContentMessages.js b/src/ContentMessages.js index bb0852d3d6..42b7971b87 100644 --- a/src/ContentMessages.js +++ b/src/ContentMessages.js @@ -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;