mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: add missing "isLatest" flag
This commit is contained in:
@@ -19,7 +19,7 @@ export type BaileysEventMap<T> = {
|
|||||||
/** set messages (history sync), messages are reverse chronologically sorted */
|
/** set messages (history sync), messages are reverse chronologically sorted */
|
||||||
'messages.set': { messages: WAMessage[], isLatest: boolean }
|
'messages.set': { messages: WAMessage[], isLatest: boolean }
|
||||||
/** set contacts (history sync) */
|
/** set contacts (history sync) */
|
||||||
'contacts.set': { contacts: Contact[] }
|
'contacts.set': { contacts: Contact[], isLatest: boolean }
|
||||||
/** upsert chats */
|
/** upsert chats */
|
||||||
'chats.upsert': Chat[]
|
'chats.upsert': Chat[]
|
||||||
/** update the given chats */
|
/** update the given chats */
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ const processMessage = async(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(contacts.length) {
|
if(contacts.length) {
|
||||||
map['contacts.set'] = { contacts }
|
map['contacts.set'] = { contacts, isLatest }
|
||||||
}
|
}
|
||||||
|
|
||||||
if(didProcess) {
|
if(didProcess) {
|
||||||
|
|||||||
Reference in New Issue
Block a user