Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

message_revoke_everyone - message and revoked_msg are the same. #2948

Closed
1 task done
TheMacros opened this issue Apr 12, 2024 · 0 comments
Closed
1 task done

message_revoke_everyone - message and revoked_msg are the same. #2948

TheMacros opened this issue Apr 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@TheMacros
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I'm trying to catch the message_revoke_everyone event and found out that the callback function has two messages with the same ID.

Expected behavior

revoked_msg variable should contain the ID of the deleted message.

Steps to Reproduce the Bug or Issue

Subscribe to the message_revoke_everyone event, and delete the message on your device. Check message and revoked variables.

Relevant Code

this.client.on('message_revoke_everyone', async (message, revoked) => {
// these two variables has the same ID
console.log(message.id);
console.log(revoked.id);
});

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

OS: Linux
Phone OS: iOS
whatsapp-web.js version: webpack-exodus
WhatsApp Web version: 2.3000.1012737330

Additional context

Related: #1178

@TheMacros TheMacros added the bug Something isn't working label Apr 12, 2024
@alechkos alechkos marked this as a duplicate of #1178 Apr 12, 2024
@alechkos alechkos closed this as not planned Won't fix, can't repro, duplicate, stale Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants