引用的消息, 不显示号码

dev/chat
Lei OT 2 years ago
parent 80cb0357de
commit 14a6baac43

@ -207,7 +207,7 @@ export const whatsappMsgTypeMapped = {
unsupported: { type: 'system', data: (msg) => ({ text: 'Message type is currently not supported.' }) }, unsupported: { type: 'system', data: (msg) => ({ text: 'Message type is currently not supported.' }) },
reaction: { reaction: {
type: 'text', type: 'text',
data: (msg) => ({ id: msg.wamid, text: msg.reaction?.emoji || msg.reaction?.text?.body || 'Reaction', reply: { message: '{content}', title: 'React from' } }), // todo: data: (msg) => ({ id: msg.wamid, text: msg.reaction?.emoji || msg.reaction?.text?.body || 'Reaction', reply: { message: '{content}', title: 'React from', titleColor: '#1ba784' } }), // todo:
}, },
document: { document: {
type: 'file', type: 'file',
@ -275,7 +275,8 @@ export const parseRenderMessageList = (messages, conversationid = null) => {
: { : {
reply: { reply: {
message: msg.messageorigin_AsJOSN.text?.body || msg.messageorigin_AsJOSN.text, message: msg.messageorigin_AsJOSN.text?.body || msg.messageorigin_AsJOSN.text,
title: msg.messageorigin_AsJOSN.senderName || msg.messageorigin_AsJOSN.from title: msg.messageorigin_AsJOSN.senderName || '@', // msg.messageorigin_AsJOSN.from
titleColor: "#128c7e",
}, },
origin: msg.messageorigin_AsJOSN, origin: msg.messageorigin_AsJOSN,
}), }),

Loading…
Cancel
Save