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:
Rajeh Taher 2022-12-22 21:02:49 +02:00 • committed by GitHub
commit 288a572af6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;