submitCompose: accept an options object

This commit is contained in:
Alex Gleason
2023-10-13 11:47:24 -05:00
parent 7863e6225e
commit 181df09039
2 changed files with 12 additions and 5 deletions

View File

@ -152,7 +152,7 @@ const ComposeForm = <ID extends string>({ id, shouldCondense, autoFocus, clickab
return;
}
dispatch(submitCompose(id, history));
dispatch(submitCompose(id, { history }));
editorRef.current?.dispatchCommand(CLEAR_EDITOR_COMMAND, undefined);
};