|
|
|
@ -255,6 +255,7 @@ const ChatListItem = (({item, refreshConversationList,setListUpdateFlag,onSwitch
|
|
|
|
|
key={item.sn}
|
|
|
|
|
id={item.sn}
|
|
|
|
|
letterItem={{ id: item.show_default, letter: (item?.show_default || '').split("@")[0].slice(0, 5) }}
|
|
|
|
|
// letterItem={{ id: '群', letter: '群' }}
|
|
|
|
|
alt={item.whatsapp_name}
|
|
|
|
|
title={
|
|
|
|
|
<span>
|
|
|
|
@ -289,6 +290,8 @@ const ChatListItem = (({item, refreshConversationList,setListUpdateFlag,onSwitch
|
|
|
|
|
date={item.lasttime || item.last_received_time || item.last_send_time}
|
|
|
|
|
dateString='' // 为了覆盖: 其他客户端发送的失败消息, 推送到此处产生新会话, 但是dataString是长字符串
|
|
|
|
|
unread={item.unread_msg_count > 99 ? 0 : item.unread_msg_count}
|
|
|
|
|
// muted={item.unread_msg_count>0}
|
|
|
|
|
// showMute={item.unread_msg_count>0}
|
|
|
|
|
// className={[
|
|
|
|
|
// String(item.sn) === String(currentConversation.sn) ? '__active text-primary bg-whatsapp-bg' : '',
|
|
|
|
|
// String(item.sn) === String(tabSelectedConversation?.sn) ? ' bg-neutral-200' : '',
|
|
|
|
@ -297,10 +300,10 @@ const ChatListItem = (({item, refreshConversationList,setListUpdateFlag,onSwitch
|
|
|
|
|
statusText={
|
|
|
|
|
<ChannelLogo
|
|
|
|
|
channel={flush([
|
|
|
|
|
item?.channels?.phone_number ? 'phone' : null,
|
|
|
|
|
item?.channels?.phone_number ? 'waba' : null,
|
|
|
|
|
item?.channels?.email ? 'email' : null,
|
|
|
|
|
item?.channels?.whatsapp_phone_number ? 'waba' : null,
|
|
|
|
|
item?.last_message?.type === 'email' ? 'email' : null,
|
|
|
|
|
item?.last_message?.source || null, // wai, WABA, email
|
|
|
|
|
])}
|
|
|
|
|
/>
|
|
|
|
|
}
|
|
|
|
|