fix: appending mention to draft content (#1065)

This commit is contained in:
Amy 2024-12-17 13:29:57 -04:00 committed by GitHub
parent 03f9f7673d
commit bf951e59ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}`);
}
}