From 09553def8aa9210fd5ce0543cc69aabb5ae4f2c8 Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Sun, 16 Jan 2022 12:54:08 +0530 Subject: [PATCH] fix: include isLatest in events --- src/Types/Events.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Types/Events.ts b/src/Types/Events.ts index 7aa534e..e17cc0b 100644 --- a/src/Types/Events.ts +++ b/src/Types/Events.ts @@ -14,7 +14,7 @@ export type BaileysEventMap = { /** credentials updated -- some metadata, keys or something */ 'creds.update': Partial /** 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 */