From bf951e59ee0be9537340fb22a6a7665c58de8fe7 Mon Sep 17 00:00:00 2001 From: Amy <138383945+amycatgirl@users.noreply.github.com> Date: Tue, 17 Dec 2024 13:29:57 -0400 Subject: [PATCH] fix: appending mention to draft content (#1065) --- src/components/common/messaging/MessageBox.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/common/messaging/MessageBox.tsx b/src/components/common/messaging/MessageBox.tsx index 78c26981..1c69546a 100644 --- a/src/components/common/messaging/MessageBox.tsx +++ b/src/components/common/messaging/MessageBox.tsx @@ -305,7 +305,7 @@ export default observer(({ channel }: Props) => { if (!state.draft.has(channel._id)) { setMessage(text); } else { - setMessage(`${state.draft.get(channel._id)}\n${text}`); + setMessage(`${state.draft.get(channel._id)?.content}\n${text}`); } }