fix: include isLatest in events

This commit is contained in:
Adhiraj Singh
2022-01-16 12:54:08 +05:30
parent 793b23cb21
commit 09553def8a

View File

@@ -14,7 +14,7 @@ export type BaileysEventMap<T> = {
/** credentials updated -- some metadata, keys or something */
'creds.update': Partial<T>
/** 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 */
'chats.upsert': Chat[]
/** update the given chats */