From 2abd14965516b39583b83a273fb91b30b4cdbe58 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Wed, 25 Jun 2025 09:57:31 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20email=20=E4=B8=8D=E5=9C=A8=E5=9C=A8?= =?UTF-8?q?=E7=BA=BF=E8=81=8A=E5=A4=A9=E9=A1=B5=E9=9D=A2=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/ConversationStore.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/stores/ConversationStore.js b/src/stores/ConversationStore.js index 83d9974..b74c7e0 100644 --- a/src/stores/ConversationStore.js +++ b/src/stores/ConversationStore.js @@ -197,10 +197,10 @@ const websocketSlice = (set, get) => ({ // console.log('msgRender msgUpdate', msgRender, msgUpdate); if (['email.updated', 'email.inbound.received',].includes(resultType)) { updateMailboxCount({ opi_sn: msgObj.opi_sn }) - if (!isEmpty(msgRender)) { - const msgNotify = receivedMsgTypeMapped[resultType].contentToNotify(msgObj); - addGlobalNotify(msgNotify); - } + // if (!isEmpty(msgRender)) { + // const msgNotify = receivedMsgTypeMapped[resultType].contentToNotify(msgObj); + // addGlobalNotify(msgNotify); + // } return false; } if ([ @@ -238,7 +238,9 @@ const websocketSlice = (set, get) => ({ // }, 60_000); } // 会话表 更新 - if (['session.new', 'session.updated'].includes(resultType)) { + if (['session.new', 'session.updated'].includes(resultType) + && result.webhooksource !== 'email' + ) { const sessionList = receivedMsgTypeMapped[resultType].getMsg(result); addToConversationList(sessionList, 'top'); }