|
|
|
@ -142,7 +142,7 @@ export const sentMsgTypeMapped = {
|
|
|
|
|
contentToRender: (msg) => ({
|
|
|
|
|
...msg,
|
|
|
|
|
...mediaMsg.contentToRender(msg),
|
|
|
|
|
text: msg?.name || '',
|
|
|
|
|
text: (msg?.name || '') + `\n${msg?.text || ''}`,
|
|
|
|
|
title: msg?.name || '',
|
|
|
|
|
originText: msg?.name || '',
|
|
|
|
|
whatsapp_msg_type: 'document',
|
|
|
|
@ -363,13 +363,13 @@ export const whatsappMsgTypeMapped = {
|
|
|
|
|
data: (msg) => ({
|
|
|
|
|
id: msg.wamid,
|
|
|
|
|
title: msg.document?.filename || '',
|
|
|
|
|
text: msg.document?.caption || msg.document?.filename || '',
|
|
|
|
|
data: { uri: msg.document.link, extension: 'PDF', status: { click: false, download: true, loading: 0 } },
|
|
|
|
|
text: (msg.document?.filename || '') + `\n${msg.document?.caption || ''}`,
|
|
|
|
|
data: { uri: msg.document.link, status: { click: false, download: true, loading: 0 } },
|
|
|
|
|
originText: msg.document?.caption || msg.document?.filename || '',
|
|
|
|
|
}),
|
|
|
|
|
renderForReply: (msg) => ({
|
|
|
|
|
id: msg.wamid,
|
|
|
|
|
message: msg.document?.caption || msg.document?.filename || '',
|
|
|
|
|
message: msg.document?.caption || msg.document?.filename || '[文件]',
|
|
|
|
|
}),
|
|
|
|
|
},
|
|
|
|
|
contacts: {
|
|
|
|
|