style: 历史记录: 引用的来源title color

dev/chat
Lei OT 2 years ago
parent 445b557e03
commit 09e5f3cfba

@ -463,7 +463,7 @@ export const parseRenderMessageItem = (msg) => {
/**
* 从数据库读取的记录
*/
export const parseRenderMessageList = (messages, conversationid = null) => {
export const parseRenderMessageList = (messages) => {
return messages.map((msg, i) => {
let msgContentString = '';
if (typeof msg.msgtext_AsJOSN === 'string') {
@ -507,8 +507,8 @@ export const parseRenderMessageList = (messages, conversationid = null) => {
...(typeof whatsappMsgTypeMapped[(msg.messageorigin_AsJOSN?.type || 'unsupported')]?.renderForReply === 'function'
? whatsappMsgTypeMapped[(msg.messageorigin_AsJOSN?.type || 'unsupported')].renderForReply(msg.messageorigin_AsJOSN)
: {}),
// titleColor: msg.messageorigin_AsJOSN?.customerProfile?.name ? '#a791ff' : "#128c7e",
titleColor: msg.messageorigin_direction === 'inbound' ? '#a791ff' : "#128c7e",
titleColor: msg.messageorigin_AsJOSN?.customerProfile?.name ? '#a791ff' : "#128c7e",
// titleColor: msg.messageorigin_direction === 'inbound' ? '#a791ff' : "#128c7e",
},
origin: msg.messageorigin_AsJOSN,
}),

Loading…
Cancel
Save