diff --git a/src/components/views/rooms/MessageComposer.tsx b/src/components/views/rooms/MessageComposer.tsx index f2a6e963f7..2d5f9cc99c 100644 --- a/src/components/views/rooms/MessageComposer.tsx +++ b/src/components/views/rooms/MessageComposer.tsx @@ -336,6 +336,7 @@ export class MessageComposer extends React.Component { const { permalinkCreator, relation, replyToEvent } = this.props; const composerContent = this.state.composerContent; this.setState({ composerContent: "", initialComposerContent: "" }); + dis.dispatch({ action: Action.ClearAndFocusSendMessageComposer }); await sendMessage(composerContent, this.state.isRichTextEnabled, { mxClient: this.props.mxClient, roomContext: this.context, @@ -343,7 +344,6 @@ export class MessageComposer extends React.Component { relation, replyToEvent, }); - dis.dispatch({ action: Action.ClearAndFocusSendMessageComposer }); } };