From 75d998a6fec3671cf437ec53e5b89e22c783df87 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Mon, 16 Dec 2024 11:00:26 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E9=82=AE=E4=BB=B6=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Conversations/Online/Input/EmailComposer.jsx | 1 + src/views/Conversations/Online/Input/EmailEditorPopup.jsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/views/Conversations/Online/Input/EmailComposer.jsx b/src/views/Conversations/Online/Input/EmailComposer.jsx index 830861f..1f95b79 100644 --- a/src/views/Conversations/Online/Input/EmailComposer.jsx +++ b/src/views/Conversations/Online/Input/EmailComposer.jsx @@ -150,6 +150,7 @@ const EmailComposer = ({ ...props }) => { setSendLoading(true) body.externalID = stickToCid body.actionID = `${stickToCid}.${msgObj.id}` + body.contenttype = 'text/plain'; try { const bubbleMsg = cloneDeep(msgObj) bubbleMsg.id = `${stickToCid}.${msgObj.id}` diff --git a/src/views/Conversations/Online/Input/EmailEditorPopup.jsx b/src/views/Conversations/Online/Input/EmailEditorPopup.jsx index 1dec227..d3c0180 100644 --- a/src/views/Conversations/Online/Input/EmailEditorPopup.jsx +++ b/src/views/Conversations/Online/Input/EmailEditorPopup.jsx @@ -408,6 +408,7 @@ const EmailEditorPopup = ({ open, setOpen, fromEmail, fromUser, fromOrder, oid, setSendLoading(true); body.externalID = stickToCid; body.actionID = `${stickToCid}.${msgObj.id}`; + body.contenttype = isRichText ? 'text/html' : 'text/plain'; try { const bubbleMsg = cloneDeep(msgObj); bubbleMsg.id = `${stickToCid}.${msgObj.id}`;