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

deleteMessage (with revoking) not working on group as admin. #2319

Open
jamesxt-94 opened this issue Sep 11, 2024 · 0 comments
Open

deleteMessage (with revoking) not working on group as admin. #2319

jamesxt-94 opened this issue Sep 11, 2024 · 0 comments

Comments

@jamesxt-94
Copy link

jamesxt-94 commented Sep 11, 2024

WA-JS Version

3.10.1

WhatsApp Version

All

Browser Version

All

Operation System

All

Steps to reproduce

Try to deleteMessage with revoke: true on a group.

What is expected?

Message revoked

What is actually happening?

Only deleting local

Any additional comments?

I don't know why, the code was changed, to only revoke self messages. If you see the file:
https://github.com/wppconnect-team/wa-js/blob/main/src/chat/functions/deleteMessage.ts

you can see this portion of code (line 94):

 } else if (revoke && isSentByMe) {

Is checking isSentByMe, so cannot be revoked messages as admin on groups.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant