From e2a75e57e4eff73bd7a4b42cae047db7b2f2c904 Mon Sep 17 00:00:00 2001 From: wkarts <57051272+wkarts@users.noreply.github.com> Date: Fri, 16 Aug 2024 12:30:52 -0300 Subject: [PATCH] Update messages-recv.ts --- src/Socket/messages-recv.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Socket/messages-recv.ts b/src/Socket/messages-recv.ts index debe152b2bc..2fce67e41fe 100644 --- a/src/Socket/messages-recv.ts +++ b/src/Socket/messages-recv.ts @@ -833,7 +833,7 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => { chatJid: oldestMsgKey.remoteJid, oldestMsgFromMe: oldestMsgKey.fromMe, oldestMsgId: oldestMsgKey.id, - oldestMsgTimestampMs: oldestMsgTimestamp as number | Long | null | undefined, + oldestMsgTimestampMs: Number(oldestMsgTimestamp), onDemandMsgCount: count }, peerDataOperationRequestType: proto.Message.PeerDataOperationRequestType.HISTORY_SYNC_ON_DEMAND