diff --git a/src/Utils/process-message.ts b/src/Utils/process-message.ts index fc9c48d..ed3f03d 100644 --- a/src/Utils/process-message.ts +++ b/src/Utils/process-message.ts @@ -94,7 +94,7 @@ const processMessage = async( logger?.info({ histNotification, id: message.key.id }, 'got history notification') if(downloadHistory) { - const isLatest = historyCache.size === 0 && !creds.processedHistoryMessages?.length + const isLatest = !creds.processedHistoryMessages?.length const { chats, contacts, messages, didProcess } = await downloadAndProcessHistorySyncNotification(histNotification, historyCache, recvChats) if(chats.length) {