Fix Reject Calls (#3909)
This commit is contained in:
parent
829dd7f6d0
commit
0cdfda238f
1 changed files with 6 additions and 6 deletions
|
|
@ -825,16 +825,16 @@ exports.LoadUtils = () => {
|
|||
};
|
||||
|
||||
window.WWebJS.rejectCall = async (peerJid, id) => {
|
||||
peerJid = peerJid.split('@')[0] + '@s.whatsapp.net';
|
||||
let userId = window.Store.User.getMaybeMePnUser().user + '@s.whatsapp.net';
|
||||
let userId = window.Store.User.getMaybeMePnUser()._serialized;
|
||||
|
||||
const stanza = window.Store.SocketWap.wap('call', {
|
||||
id: window.Store.SocketWap.generateId(),
|
||||
from: window.Store.SocketWap.USER_JID(userId),
|
||||
to: window.Store.SocketWap.USER_JID(peerJid),
|
||||
from: userId,
|
||||
to: peerJid,
|
||||
}, [
|
||||
window.Store.SocketWap.wap('reject', {
|
||||
'call-id': id,
|
||||
'call-creator': window.Store.SocketWap.USER_JID(peerJid),
|
||||
'call-creator': peerJid,
|
||||
count: '0',
|
||||
})
|
||||
]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue