Focus the text input box after successfully attaching a file

Fixes #6284 - does not focus immediately (so as to avoid stealing
 focus) and does not focus if the file browser is cancelled.
This commit is contained in:
Will Bradley 2023-02-12 17:03:37 -08:00
parent da322b8966
commit 2cb4e65a9a
No known key found for this signature in database
GPG key ID: EF998EDF20004963

View file

@ -1031,6 +1031,7 @@ export function replaceAttachments(
attachments: attachments.map(resolveDraftAttachmentOnDisk),
},
});
dispatch(setComposerFocus(conversationId));
};
}