diff --git a/src/stores/ConversationStore.js b/src/stores/ConversationStore.js index d2657d4..fa6501f 100644 --- a/src/stores/ConversationStore.js +++ b/src/stores/ConversationStore.js @@ -313,7 +313,7 @@ const messageSlice = (set, get) => ({ // * 已读的不再更新状态, 有时候投递结果在已读之后返回 if (ele.id === ele.actionId && ele.actionId === message.actionId) { return { ...ele, id: message.id, status: ele.status === 'read' ? ele.status : message.status, dateString: message.dateString }; - } else if (ele.id === message.id) { + } else if (String(ele.id) === String(message.id)) { // console.log('old msg ele', ele); const renderStatus = message?.data?.status ? { status: { ...ele.data.status, loading: 0, download: true } } : {}; const keepReply = ele.reply ? { reply: ele.reply } : {}; diff --git a/src/views/Conversations/Online/Input/EmailEditorPopup.jsx b/src/views/Conversations/Online/Input/EmailEditorPopup.jsx index a7dea39..a887490 100644 --- a/src/views/Conversations/Online/Input/EmailEditorPopup.jsx +++ b/src/views/Conversations/Online/Input/EmailEditorPopup.jsx @@ -307,7 +307,7 @@ const EmailEditorPopup = ({ open, setOpen, fromEmail, fromUser, conversationid, const result = await postSendEmail(body); setSendLoading(false); const mailSavedId = result.id || ''; - msgObj.id = mailSavedId + msgObj.id = `${stickToCid}.${msgObj.id}`; msgObj.email.mai_sn = mailSavedId; invokeEmailMessage(msgObj);