|
|
|
@ -5,7 +5,7 @@ import { CloseCircleOutlined } from '@ant-design/icons';
|
|
|
|
|
import { fetchConversationItemClose, fetchConversationsSearch, fetchConversationItemUnread, fetchConversationItemTop, postConversationTags, deleteConversationTags } from '@/actions/ConversationActions';
|
|
|
|
|
import { ChatItem } from 'react-chat-elements';
|
|
|
|
|
// import ConversationsNewItem from './ConversationsNewItem';
|
|
|
|
|
import { isEmpty, stringToColour } from '@/utils/commons';
|
|
|
|
|
import { flush, isEmpty, stringToColour } from '@/utils/commons';
|
|
|
|
|
import useConversationStore from '@/stores/ConversationStore';
|
|
|
|
|
import useAuthStore from '@/stores/AuthStore';
|
|
|
|
|
import ChannelLogo from './ChannelLogo';
|
|
|
|
@ -307,7 +307,11 @@ const ChatListItem = (({item, refreshConversationList,setListUpdateFlag,onSwitch
|
|
|
|
|
// String(item.sn) === String(tabSelectedConversation?.sn) ? ' bg-neutral-200' : '',
|
|
|
|
|
// ].join(' ')}
|
|
|
|
|
// statusText={<WhatsAppOutlined key={'channel'} className='text-whatsapp' />}
|
|
|
|
|
statusText={<ChannelLogo channel={'waba'} />}
|
|
|
|
|
statusText={<ChannelLogo channel={flush([
|
|
|
|
|
item.channels.phone_number ? 'phone' : null,
|
|
|
|
|
item.channels.email ? 'email' : null,
|
|
|
|
|
item.channels.whatsapp_phone_number ? 'waba' : null,
|
|
|
|
|
])} />}
|
|
|
|
|
statusColor={'#fff'}
|
|
|
|
|
onClick={() => onSwitchConversation(item)}
|
|
|
|
|
customStatusComponents={[
|
|
|
|
|