perf(前端): wai 历史记录

dev/supplier-email-drawer
Lei OT 9 months ago
parent 3fecbc8122
commit 8c6e2df266

@ -791,7 +791,7 @@ export const parseRenderMessageList = (messages) => {
dateString: msgStatusRenderMapped[msgContent?.status || 'failed'] === 'failed' ? `${(msg.msgtime || '').replace('T', ' ')} 发送失败 ${waError}` : '',
statusCN: msgStatusRenderMappedCN[msgContent?.status || 'failed'],
statusTitle: msgStatusRenderMappedCN[msgContent?.status || 'failed'],
id: (msgContent?.status || 'failed') === 'failed' ? msgContent.actionId : (msgTypeData.id || msg.id || msg.sn),
id: (msgContent?.status || 'failed') === 'failed' ? (msgContent.actionId || msgContent.id) : (msgTypeData.id || msg.id || msg.sn),
actionId: msgContent.actionId,
replyButton: !['waiting', 'failed'].includes(msgContent?.status || 'failed') ,
}

@ -199,7 +199,7 @@ const MessagesList = ({ ...listProps }) => {
// eslint-disable-next-line react/display-name
const MessageBoxWithRef = forwardRef((props, ref) => (
<li ref={ref}>
{(props.msg_source || '').toLowerCase() === 'waba' && <MessageBox {...props} />}
{['waba', 'wai'].includes((props.msg_source || '').toLowerCase()) && <MessageBox {...props} />}
{props.msg_source === 'email' && <BubbleEmail {...props} reposition='left' onOpenEmail={listProps.onOpenEmail} />}
</li>
));

Loading…
Cancel
Save