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
parent 6fe1017bd3
commit 288a572af6
3 changed files with 31 additions and 1 deletions

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;