fix(history): opisn 为空

hotfix/new-conversation
Lei OT 1 year ago
parent 1ade07095f
commit c2a2270e8f

@ -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;

Loading…
Cancel
Save