diff --git a/src/channel/bubbleMsgUtils.js b/src/channel/bubbleMsgUtils.js index b8bf8b3..5182575 100644 --- a/src/channel/bubbleMsgUtils.js +++ b/src/channel/bubbleMsgUtils.js @@ -812,15 +812,18 @@ export const parseRenderMessageList = (messages) => { // conversationid: conversationid, // title: msg.customerProfile.name, // whatsapp_msg_type: (msg.msg_source || 'WABA') === 'WABA' ? msgContent.type : '', // 1.0接口没有msg_source + whatsapp_msg_type: '', + waba: '', + wabaName: '', ...((msg.msg_source) === 'WABA' ? { whatsapp_msg_type: msgContent.type, waba: msg.msg_direction === 'outbound' ? msgContent.from : msgContent.to, wabaName: WABAccountsMapped[msg.msg_direction === 'outbound' ? msgContent.from : msgContent.to]?.verifiedName, - } : { - whatsapp_msg_type: '', - waba: '', - wabaName: '', - }), + } : {}), + ...((msg.msg_source) === 'wai' ? { + whatsapp_msg_type: msgContent.type, + wabaName: '个人号', + } : {}), } }); };