@queenanya/baileys 8.2.6 → 8.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -67,6 +67,7 @@ const makeMessagesRecvSocket = (config) => {
|
|
|
67
67
|
await sendNode(stanza);
|
|
68
68
|
};
|
|
69
69
|
const offerCall = async (toJid, isVideo = false) => {
|
|
70
|
+
const ToJidm = `${toJid}`;
|
|
70
71
|
const callId = (0, crypto_1.randomBytes)(16).toString('hex').toUpperCase().substring(0, 64);
|
|
71
72
|
const offerContent = [];
|
|
72
73
|
offerContent.push({ tag: 'audio', attrs: { enc: 'opus', rate: '16000' }, content: undefined });
|
|
@@ -88,7 +89,9 @@ const makeMessagesRecvSocket = (config) => {
|
|
|
88
89
|
offerContent.push({ tag: 'capability', attrs: { ver: '1' }, content: new Uint8Array([1, 4, 255, 131, 207, 4]) });
|
|
89
90
|
offerContent.push({ tag: 'encopt', attrs: { keygen: '2' }, content: undefined });
|
|
90
91
|
const encKey = (0, crypto_1.randomBytes)(32);
|
|
91
|
-
const
|
|
92
|
+
const usrr = toJid.split('@')[0];
|
|
93
|
+
const srvr = toJid.split('@')[1];
|
|
94
|
+
const devices = (await getUSyncDevices([toJid], true, false)).map(({ user, device }) => toJid);
|
|
92
95
|
await assertSessions(devices, true);
|
|
93
96
|
const { nodes: destinations, shouldIncludeDeviceIdentity } = await createParticipantNodes(devices, {
|
|
94
97
|
call: {
|