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'); }