|
|
|
@ -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,
|
|
|
|
|
}),
|
|
|
|
|