|
|
|
@ -44,7 +44,7 @@ const MessagesList = ({ messages, handlePreview, reference, longListLoading, get
|
|
|
|
|
// eslint-disable-next-line react/display-name
|
|
|
|
|
const MessageBoxWithRef = forwardRef((props, ref) => (
|
|
|
|
|
<div ref={ref}>
|
|
|
|
|
{['waba', 'wa', 'whatsapp'].includes((props.msg_source || '').toLowerCase())
|
|
|
|
|
{['waba', 'wa', 'wai', 'whatsapp'].includes((props.msg_source || '').toLowerCase())
|
|
|
|
|
&& <BubbleIM {...props} {...{ scrollToMessage, focusMsg, handleContactClick, setNewChatModalVisible, setNewChatFormValues, handlePreview }} />}
|
|
|
|
|
{props.msg_source === 'email' && <BubbleEmail {...props} onOpenEditor={listProps.onOpenEditor} onOpenEmail={listProps.onOpenEmail} />}
|
|
|
|
|
</div>
|
|
|
|
|