From 37d2f9b1af279e1b1d46881b69b1add4d969d791 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Tue, 31 Dec 2024 21:54:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=89=8D=E7=AB=AF):=20=E4=BA=8C=E7=BB=B4?= =?UTF-8?q?=E7=A0=81=E7=9A=84=E6=8E=A8=E9=80=81=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/channel/bubbleMsgUtils.js | 2 ++ src/stores/ConversationStore.js | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/channel/bubbleMsgUtils.js b/src/channel/bubbleMsgUtils.js index 41150f5..f27bdf1 100644 --- a/src/channel/bubbleMsgUtils.js +++ b/src/channel/bubbleMsgUtils.js @@ -377,6 +377,8 @@ const whatsappMsgMapped = { ? {} : { ...result.waiMessage, conversationid: result.conversationid, msg_source: 'wai', } }, + contentToRender: (contentObj) => null, + contentToUpdate: (msgcontent) => null, }, } const emailMsgMapped = { diff --git a/src/stores/ConversationStore.js b/src/stores/ConversationStore.js index 3170233..f2b169a 100644 --- a/src/stores/ConversationStore.js +++ b/src/stores/ConversationStore.js @@ -208,9 +208,9 @@ const websocketSlice = (set, get) => ({ ].includes(resultType)) { const _data = receivedMsgTypeMapped[resultType].getMsg(result); setWai(_data) - setTimeout(() => { - setWai({}); // 60s 后清空 - }, 60_000); + // setTimeout(() => { + // setWai({}); // 60s 后清空 + // }, 60_000); } // console.log('handleMessage*******************'); },