mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: include isLatest in events
This commit is contained in:
@@ -14,7 +14,7 @@ export type BaileysEventMap<T> = {
|
|||||||
/** credentials updated -- some metadata, keys or something */
|
/** credentials updated -- some metadata, keys or something */
|
||||||
'creds.update': Partial<T>
|
'creds.update': Partial<T>
|
||||||
/** set chats (history sync), messages are reverse chronologically sorted */
|
/** set chats (history sync), messages are reverse chronologically sorted */
|
||||||
'chats.set': { chats: Chat[], messages: WAMessage[], contacts: Contact[] }
|
'chats.set': { chats: Chat[], messages: WAMessage[], contacts: Contact[], isLatest: boolean }
|
||||||
/** upsert chats */
|
/** upsert chats */
|
||||||
'chats.upsert': Chat[]
|
'chats.upsert': Chat[]
|
||||||
/** update the given chats */
|
/** update the given chats */
|
||||||
|
|||||||
Reference in New Issue
Block a user