fix: 最近消息: 未返回引用context 对象

2.0/email-builder
Lei OT 11 months ago
parent bb4a9e5215
commit 43d2dec880

@ -55,10 +55,10 @@ export const MESSAGE_PAGE_SIZE = 50;
*/
export const fetchMessages = async (params) => {
const defaultParams = {
opisn: '',
whatsappid: '',
lasttime: '',
// opisn: '',
// whatsappid: '',
conversationid: '',
lasttime: '',
pagesize: MESSAGE_PAGE_SIZE,
};
const { errcode, result } = await fetchJSON(`${API_HOST}/getcusmessages`, {...defaultParams, ...params});

@ -640,7 +640,7 @@ export const parseRenderMessageList = (messages) => {
: {}),
titleColor: messageorigin?.customerProfile?.name ? '#a791ff' : "#128c7e",
// titleColor: msg.messageorigin_direction === 'inbound' ? '#a791ff' : "#128c7e",
id: msgContent.context?.id || msgContent.context?.message_id || msgContent.reaction?.message_id,
id: msgContent.context?.id || msgContent.context?.message_id || msgContent.reaction?.message_id || messageorigin?.wamid,
},
origin: messageorigin,
}),

Loading…
Cancel
Save