From 14a6baac432a2537d7b28b205bf4438e12df42cc Mon Sep 17 00:00:00 2001 From: Lei OT Date: Wed, 7 Feb 2024 14:45:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=95=E7=94=A8=E7=9A=84=E6=B6=88=E6=81=AF,?= =?UTF-8?q?=20=E4=B8=8D=E6=98=BE=E7=A4=BA=E5=8F=B7=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/msgUtils.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/msgUtils.js b/src/lib/msgUtils.js index 50c8ed6..3e8848e 100644 --- a/src/lib/msgUtils.js +++ b/src/lib/msgUtils.js @@ -207,7 +207,7 @@ export const whatsappMsgTypeMapped = { unsupported: { type: 'system', data: (msg) => ({ text: 'Message type is currently not supported.' }) }, reaction: { 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: { type: 'file', @@ -275,7 +275,8 @@ export const parseRenderMessageList = (messages, conversationid = null) => { : { reply: { 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, }),