diff --git a/src/channel/whatsappUtils.js b/src/channel/whatsappUtils.js index 517cf9a..ccb532d 100644 --- a/src/channel/whatsappUtils.js +++ b/src/channel/whatsappUtils.js @@ -497,7 +497,7 @@ export const parseRenderMessageItem = (msg) => { // title: msg.customerProfile.name, customer_name: msg?.customerProfile?.name || '', whatsapp_name: msg?.customerProfile?.name || '', - whatsapp_phone_number: msg.from, + whatsapp_phone_number: isEmpty(msg?.customerProfile) ? msg.to : msg.from, whatsapp_msg_type: msg.type, statusCN: msgStatusRenderMappedCN[msg?.status || 'failed'], statusTitle: msgStatusRenderMappedCN[msg?.status || 'failed'],