From e3bda9e793ca318c2b95e1162de58a0a7c6e6f4c Mon Sep 17 00:00:00 2001 From: Bojan Mojsilovic Date: Fri, 2 Feb 2024 18:40:43 +0100 Subject: [PATCH] Fix clearing draft after posting --- src/components/NewNote/EditBox/EditBox.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/NewNote/EditBox/EditBox.tsx b/src/components/NewNote/EditBox/EditBox.tsx index d69b7e2..d884fa2 100644 --- a/src/components/NewNote/EditBox/EditBox.tsx +++ b/src/components/NewNote/EditBox/EditBox.tsx @@ -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();