fix: message.delete() can revoke for everyone (#1107)

Change msg.canRevoke to msg._canRevoke according to WhatsApp code change
This commit is contained in:
Shir Serlui
2022-02-05 21:52:04 +02:00
committed by GitHub
parent 6878598a5d
commit bb2ef88e0a

View File

@@ -382,7 +382,7 @@ class Message extends Base {
await this.client.pupPage.evaluate((msgId, everyone) => {
let msg = window.Store.Msg.get(msgId);
if (everyone && msg.id.fromMe && msg.canRevoke()) {
if (everyone && msg.id.fromMe && msg._canRevoke()) {
return window.Store.Cmd.sendRevokeMsgs(msg.chat, [msg], true);
}