[core] WEBJS - message.revoked add revokedMessageId

This commit is contained in:
devlikepro committed 2025-06-16 13:05:17 +07:00
1 parent 6dcdd15b1c
commit 41d49894e2
1 file changed
+2 -2
+2 -2
View File
@@ -1418,8 +1418,8 @@ export class WhatsappSessionWebJSCore extends WhatsappSession {
const beforeMessage = event.before
? this.toWAMessage(event.before)
: null;
// Extract the revoked message ID from the before message
const revokedMessageId = beforeMessage?.id;
// Extract the revoked message ID from the protocolMessageKey.id field
const revokedMessageId = afterMessage?._data?.protocolMessageKey?.id;
return {
after: afterMessage,
before: beforeMessage,