From 0cf5f30c0db702ca2fb3b690405930efee33730c Mon Sep 17 00:00:00 2001 From: devlikepro Date: Thu, 18 Jul 2024 12:40:13 +0300 Subject: [PATCH] [core] Add timestamp to chat.archive --- src/core/engines/webjs/session.webjs.core.ts | 1 + src/structures/chats.dto.ts | 2 ++ 2 files changed, 3 insertions(+) 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; }