|
|
|
@ -25,7 +25,7 @@ const MessagesWrapper = () => {
|
|
|
|
|
const getMoreMessages = async () => {
|
|
|
|
|
setShouldScrollBottom(false);
|
|
|
|
|
setLongListLoading(true);
|
|
|
|
|
const data = await fetchMessages({ opisn: currentConversation.opi_sn, whatsappid: currentConversation.whatsapp_phone_number, lasttime: currentConversation?.lasttime || '2024-01-01T00:00:00' });
|
|
|
|
|
const data = await fetchMessages({ opisn: currentConversation.opi_sn, whatsappid: currentConversation.whatsapp_phone_number, lasttime: currentConversation?.lasttime || '' });
|
|
|
|
|
setLongListLoading(false);
|
|
|
|
|
setLongList(prevValue => data.concat(prevValue));
|
|
|
|
|
const thisLastTime = data.length > 0 ? data[data.length - 1].orgmsgtime : '';
|
|
|
|
|