whalibmob 5.5.33 → 5.5.34
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.
- package/lib/DeviceManager.js +11 -5
- package/package.json +1 -1
package/lib/DeviceManager.js
CHANGED
|
@@ -445,13 +445,16 @@ class DeviceManager {
|
|
|
445
445
|
const iqNode = new BinaryNode('iq',
|
|
446
446
|
{ id: iqId, to: 's.whatsapp.net', type: 'get', xmlns: 'usync' },
|
|
447
447
|
[new BinaryNode('usync',
|
|
448
|
-
{ sid, mode: 'query', last: 'true', index: '0', context: '
|
|
448
|
+
{ sid, mode: 'query', last: 'true', index: '0', context: 'message' },
|
|
449
449
|
[
|
|
450
450
|
new BinaryNode('query', {},
|
|
451
|
-
[
|
|
451
|
+
[
|
|
452
|
+
new BinaryNode('devices', { version: '2' }, null),
|
|
453
|
+
new BinaryNode('lid', {}, null)
|
|
454
|
+
]
|
|
452
455
|
),
|
|
453
456
|
new BinaryNode('list', {}, listChildren),
|
|
454
|
-
new BinaryNode('side_list', {}, null)
|
|
457
|
+
new BinaryNode('side_list', {}, null)
|
|
455
458
|
]
|
|
456
459
|
)]
|
|
457
460
|
);
|
|
@@ -771,10 +774,13 @@ class DeviceManager {
|
|
|
771
774
|
const iqNode = new BinaryNode('iq',
|
|
772
775
|
{ id: iqId, to: 's.whatsapp.net', type: 'get', xmlns: 'usync' },
|
|
773
776
|
[new BinaryNode('usync',
|
|
774
|
-
{ sid, mode: 'query', last: 'true', index: '0', context: '
|
|
777
|
+
{ sid, mode: 'query', last: 'true', index: '0', context: 'message' },
|
|
775
778
|
[
|
|
776
779
|
new BinaryNode('query', {},
|
|
777
|
-
[
|
|
780
|
+
[
|
|
781
|
+
new BinaryNode('devices', { version: '2' }, null),
|
|
782
|
+
new BinaryNode('lid', {}, null)
|
|
783
|
+
]
|
|
778
784
|
),
|
|
779
785
|
new BinaryNode('list', {},
|
|
780
786
|
[new BinaryNode('user', { jid }, null)]
|