diff --git a/src/features/compose/components/compose-form.tsx b/src/features/compose/components/compose-form.tsx index 9dd2cee37..e09f8bb4a 100644 --- a/src/features/compose/components/compose-form.tsx +++ b/src/features/compose/components/compose-form.tsx @@ -140,10 +140,10 @@ const ComposeForm = ({ id, shouldCondense, autoFocus, clickab if (!canSubmit) return; e?.preventDefault(); - // dispatch(changeCompose(id, text)); - dispatch(submitCompose(id, { history })); + dispatch(submitCompose(id, { history })).then(() => { + editorRef.current?.dispatchCommand(CLEAR_EDITOR_COMMAND, undefined); + }).catch(() => {}); - editorRef.current?.dispatchCommand(CLEAR_EDITOR_COMMAND, undefined); }; const onSuggestionsClearRequested = () => {