From c2a2270e8f9db4a7d835400c3a649c677c378f53 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Fri, 31 May 2024 20:35:09 +0800 Subject: [PATCH] =?UTF-8?q?fix(history):=20opisn=20=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Conversations/History/MessagesList.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/Conversations/History/MessagesList.jsx b/src/views/Conversations/History/MessagesList.jsx index 791cb85..d4ffcb2 100644 --- a/src/views/Conversations/History/MessagesList.jsx +++ b/src/views/Conversations/History/MessagesList.jsx @@ -52,10 +52,10 @@ const MessagesList = ({ ...props }) => { setChatItemMessages([]); setParamsForMsgList({}); setSelectedMatch({}); - if (isEmpty(selectedConversation.conversationid) || isEmpty(selectedConversation.opi_sn)) { + if (isEmpty(selectedConversation.conversationid)) { return () => {}; } - const firstActionPageParams = { opisn: selectedConversation.opi_sn, whatsappid: selectedConversation.whatsapp_phone_number, loadNextPage: true }; + const firstActionPageParams = { opisn: (selectedConversation.opi_sn || 0), whatsappid: selectedConversation.whatsapp_phone_number, loadNextPage: true }; // if (isEmpty(selectedConversation.matchMsgList)) { if (!isEmpty(formValues?.from_date)) { firstActionPageParams.lasttime = formValues.from_date;