mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: correctly check isLatest
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user