mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-19 12:09:15 +00:00
feat: Implement Call Rejection + Introduction of Socket API (#1882)
* Initial stage * ESLint * eslint is annoying * fix: distinguish Wap from Socket's Wap
This commit is contained in:
@@ -62,7 +62,15 @@ class Call extends Base {
|
||||
|
||||
return super._patch(data);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reject the call
|
||||
*/
|
||||
async reject() {
|
||||
return this.client.pupPage.evaluate((peerJid, id) => {
|
||||
return window.WWebJS.rejectCall(peerJid, id);
|
||||
}, this.from, this.id);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Call;
|
||||
Reference in New Issue
Block a user