Fix text compose

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-06-13 23:46:41 +02:00
parent 948f272e37
commit b8a19ff794

View file

@ -140,10 +140,10 @@ const ComposeForm = <ID extends string>({ 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 = () => {