diff --git a/src/core/engines/webjs/session.webjs.core.ts b/src/core/engines/webjs/session.webjs.core.ts index 76790495..03275d43 100644 --- a/src/core/engines/webjs/session.webjs.core.ts +++ b/src/core/engines/webjs/session.webjs.core.ts @@ -826,6 +826,7 @@ export class WhatsappSessionWebJSCore extends WhatsappSession { const body: ChatArchiveEvent = { id: chat.id._serialized, archived: archived, + timestamp: chat.timestamp, }; handler(body); }); diff --git a/src/structures/chats.dto.ts b/src/structures/chats.dto.ts index f47bcb65..57883720 100644 --- a/src/structures/chats.dto.ts +++ b/src/structures/chats.dto.ts @@ -41,4 +41,6 @@ export class ChatArchiveEvent { id: string; archived: boolean; + + timestamp: number; }