|
|
|
@ -6,6 +6,7 @@ import { groupBy, isEmpty } from '@/utils/commons';
|
|
|
|
|
import useConversationStore from '@/stores/ConversationStore';
|
|
|
|
|
import { useShallow } from 'zustand/react/shallow';
|
|
|
|
|
import { WABIcon } from '@/components/Icons';
|
|
|
|
|
import ChannelLogo from './ChannelLogo';
|
|
|
|
|
|
|
|
|
|
const BubbleIM = ({ handlePreview, handleContactClick, setNewChatModalVisible, setNewChatFormValues, scrollToMessage, focusMsg, ...message }) => {
|
|
|
|
|
const { message: appMessage } = App.useApp();
|
|
|
|
@ -112,9 +113,12 @@ const BubbleIM = ({ handlePreview, handleContactClick, setNewChatModalVisible, s
|
|
|
|
|
// styles: { backgroundColor: '#ccd4ae' },
|
|
|
|
|
notchStyle: { fill: '#ccd4ae' }, // todo: channel[WhatsApp] color '#d9fdd3'
|
|
|
|
|
replyButton: ['text', 'document', 'image'].includes(message.whatsapp_msg_type) && message.status !== 'failed' ? true : false,
|
|
|
|
|
// title: <><WABIcon/> Global Highlights</>, // test: 0
|
|
|
|
|
title: <><ChannelLogo channel={message.msg_source} /> Global Highlights</>,
|
|
|
|
|
}
|
|
|
|
|
: {})}
|
|
|
|
|
// notch={false}
|
|
|
|
|
: {
|
|
|
|
|
title: <><ChannelLogo channel={message.msg_source} />{message.title}</>,
|
|
|
|
|
})}
|
|
|
|
|
className={[
|
|
|
|
|
'whitespace-pre-wrap',
|
|
|
|
|
message.whatsapp_msg_type === 'sticker' ? 'bg-transparent' : '',
|
|
|
|
|