|
|
|
@ -402,7 +402,7 @@ export const whatsappMsgTypeMapped = {
|
|
|
|
|
*/
|
|
|
|
|
export const parseRenderMessageItem = (msg) => {
|
|
|
|
|
console.log('parseRenderMessageItem', msg);
|
|
|
|
|
const thisMsgType = Object.keys(receivedMsgTypeMapped).incluses(msg.type) ? msg.type : 'unsupported';
|
|
|
|
|
const thisMsgType = Object.keys(receivedMsgTypeMapped).includes(msg.type) ? msg.type : 'unsupported';
|
|
|
|
|
return {
|
|
|
|
|
msgOrigin: msg,
|
|
|
|
|
date: msg?.sendTime || msg?.createTime || '',
|
|
|
|
|