feat: add contacts to chats.set event

This commit is contained in:
Adhiraj Singh
2021-12-20 13:59:04 +05:30
parent e9d90aa0a5
commit 677f50baaa
4 changed files with 26 additions and 10 deletions

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[] }
'chats.set': { chats: Chat[], messages: WAMessage[], contacts: Contact[] }
/** upsert chats */
'chats.upsert': Chat[]
/** update the given chats */