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:
parent
6fe1017bd3
commit
288a572af6
1 changed files with 31 additions and 1 deletions
|
|
@ -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;
|
||||
Loading…
Reference in a new issue