fix: 订单修改whatsappID之后, 获取新会话

fix: 历史记录: 转发的消息. 不以引用显示
style: 模板 free style
dev/mobile
Lei OT 2 years ago
parent dfc249221f
commit efd60d19c2

@ -494,7 +494,8 @@ export const parseRenderMessageList = (messages, conversationid = null) => {
statusTitle: msgStatusRenderMappedCN[msgContent?.status || 'failed'],
}
: {}),
...((isEmpty(msg.messageorigin_AsJOSN) && isEmpty(msgContent.context))
...((isEmpty(msg.messageorigin_AsJOSN) && (isEmpty(msgContent.context) || msgContent.context?.forwarded === true))
// ...((isEmpty(msg.context) && isEmpty(msg.reaction)) || msg.context?.forwarded === true || isEmpty(msg.messageorigin)
// ...((isEmpty(msg.messageorigin_AsJOSN) || isEmpty(msgContent.context))
? {}
: {

@ -55,7 +55,9 @@ const Conversations = ({ mobile }) => {
const getOrderConversationList = async (colisn) => {
const { whatsapp_phone_number } = switchToC;
const whatsappID = coli_guest_WhatsApp || whatsapp_phone_number || '';
let findCurrentOrderChats = conversationsList.filter((item) => `${item.coli_sn}` === `${colisn}`);
// let findCurrentOrderChats = conversationsList.filter((item) => `${item.coli_sn}` === `${colisn}`);
// 使opisn + whatsappID , whatsappID,
let findCurrentOrderChats = conversationsList.filter((item) => `${item.whatsapp_phone_number}` === `${whatsappID}`);
let findCurrentIndex = isEmpty(findCurrentOrderChats) ? -1 : 0; // findCurrentOrderChats.length-1;
let findCurrent = findCurrentOrderChats[findCurrentIndex];
if (findCurrentIndex !== -1) {

@ -111,7 +111,7 @@ const InputTemplate = ({ mobile, disabled = false, invokeSendMessage }) => {
onChange={(e) => {
onInput(tempItem, ele.key, e.target.value, paramsVal);
}}
className='w-auto max-w-24'
className={`w-auto ${paramsVal[ele.key] ? 'max-w-24' : 'max-w-60'}`}
size={'small'}
title={ele.key}
placeholder={paramsVal[ele.key] || ele.key}

Loading…
Cancel
Save