Fix clearing draft after posting

This commit is contained in:
Bojan Mojsilovic 2024-02-02 18:40:43 +01:00
parent ba571fedaa
commit e3bda9e793

View File

@ -664,6 +664,7 @@ const EditBox: Component<{
toast?.sendSuccess(intl.formatMessage(tToast.publishNoteSuccess));
props.onSuccess && props.onSuccess({ success, reasons, note });
setIsPostingInProgress(false);
saveNoteDraft(account.publicKey, '', props.replyToNote?.post.id)
clearEditor();
}
unsub();