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

added messageRecall forwardMessage implementation #46

Merged
merged 5 commits into from
Jan 13, 2022

Conversation

kellyiscute
Copy link
Collaborator

No description provided.

@bung87
Copy link
Contributor

bung87 commented Jan 13, 2022

messageRecall is action

bung87
bung87 previously requested changes Jan 13, 2022
@bung87
Copy link
Contributor

bung87 commented Jan 13, 2022

Note here:

in whatsapp-web.js internal , it calls sendDeleteMsgs which is undocumented.

async delete(everyone) {
        await this.client.pupPage.evaluate((msgId, everyone) => {
            let msg = window.Store.Msg.get(msgId);

            if (everyone && msg.id.fromMe && msg.canRevoke()) {
                return window.Store.Cmd.sendRevokeMsgs(msg.chat, [msg], true);
            }

            return window.Store.Cmd.sendDeleteMsgs(msg.chat, [msg], true);
        }, this.id._serialized, everyone);
    }

@bung87
Copy link
Contributor

bung87 commented Jan 13, 2022

refers to #26 (comment)

@kellyiscute kellyiscute merged commit c43af2f into wechaty:dev Jan 13, 2022
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

Successfully merging this pull request may close these issues.

3 participants