From 73f7e002651941331de293f6d9b7612ffa2b76bc Mon Sep 17 00:00:00 2001 From: Lei OT Date: Mon, 16 Dec 2024 15:14:28 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=8F=91=E9=80=81=E7=9A=84waba?= =?UTF-8?q?=E6=B6=88=E6=81=AF:=20=E6=98=BE=E7=A4=BA=E5=95=86=E4=B8=9A?= =?UTF-8?q?=E5=8F=B7=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Conversations/Online/Input/InputComposer.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/Conversations/Online/Input/InputComposer.jsx b/src/views/Conversations/Online/Input/InputComposer.jsx index f276de8..28c111d 100644 --- a/src/views/Conversations/Online/Input/InputComposer.jsx +++ b/src/views/Conversations/Online/Input/InputComposer.jsx @@ -7,7 +7,7 @@ import useConversationStore from '@/stores/ConversationStore'; import { SendOutlined, CloseCircleOutlined, LoadingOutlined, FileOutlined } from '@ant-design/icons' import { isEmpty, } from '@/utils/commons'; import { v4 as uuid } from 'uuid'; -import { sentMsgTypeMapped, whatsappSupportFileTypes, uploadProgressSimulate } from '@/channel/bubbleMsgUtils'; +import { sentMsgTypeMapped, whatsappSupportFileTypes, uploadProgressSimulate, WABAccountsMapped } from '@/channel/bubbleMsgUtils'; import { OSS_URL as aliOSSHost, DEFAULT_WABA } from '@/config'; import { postUploadFileItem } from '@/actions/CommonActions'; import dayjs from 'dayjs'; @@ -103,6 +103,7 @@ const InputComposer = ({ channel, currentActive }) => { ...msgObj, id: `${currentConversation.sn}.${uuid()}`, msg_source: channel, + wabaName: channel === 'waba' ? WABAccountsMapped[fromIM]?.verifiedName : '', }; // olog('sendMessage------------------', msgObjMerge) const contentToSend = sentMsgTypeMapped[msgObjMerge.type].contentToSend(msgObjMerge); @@ -131,6 +132,7 @@ const InputComposer = ({ channel, currentActive }) => { ...msgObj, id: `${currentConversation.sn}.${msgObj.id}`, msg_source: channel, + wabaName: channel === 'waba' ? WABAccountsMapped[fromIM]?.verifiedName : '', }; // olog('invoke upload', msgObjMerge) const contentToRender = sentMsgTypeMapped[msgObjMerge.type].contentToRender(msgObjMerge); @@ -154,6 +156,7 @@ const InputComposer = ({ channel, currentActive }) => { ...msgObj, id: `${currentConversation.sn}.${msgObj.id}`, msg_source: channel, + wabaName: channel === 'waba' ? WABAccountsMapped[fromIM]?.verifiedName : '', }; const contentToSend = sentMsgTypeMapped[msgObjMerge.type].contentToSend(msgObjMerge); // olog('invoke upload send +++ ', contentToSend)