@ -35,7 +35,7 @@ export const fetchOrderConversationsList = async (params) => {
return list;
};
export const MESSAGE_PAGE_SIZE = 100;
export const MESSAGE_PAGE_SIZE = 50;
/**
*
* @param {object} params { opisn, whatsappid, lasttime, pagesize }
@ -82,7 +82,7 @@ const Conversations = () => {
useEffect(() => {
const messagesList = activeConversations[`${currentConversation.sn}`] || [];
if (messagesList.length < 20) {
if (currentConversation.sn && messagesList.length < 20) {
getMessages(currentConversation);
}