skylerss 2.0.1 → 2.0.3
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/Socket/chats.js +3 -9
- package/package.json +1 -1
package/lib/Socket/chats.js
CHANGED
|
@@ -295,7 +295,7 @@ const makeChatsSocket = (config) => {
|
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
const itemAttrs = { action, jid: lid };
|
|
298
|
-
if (action === 'block' && pn_jid) {
|
|
298
|
+
if (action === 'block' && pn_jid && lid !== pn_jid) {
|
|
299
299
|
itemAttrs.pn_jid = pn_jid;
|
|
300
300
|
}
|
|
301
301
|
|
|
@@ -308,14 +308,8 @@ const makeChatsSocket = (config) => {
|
|
|
308
308
|
},
|
|
309
309
|
content: [
|
|
310
310
|
{
|
|
311
|
-
tag: '
|
|
312
|
-
attrs:
|
|
313
|
-
content: [
|
|
314
|
-
{
|
|
315
|
-
tag: 'item',
|
|
316
|
-
attrs: itemAttrs
|
|
317
|
-
}
|
|
318
|
-
]
|
|
311
|
+
tag: 'item',
|
|
312
|
+
attrs: itemAttrs
|
|
319
313
|
}
|
|
320
314
|
]
|
|
321
315
|
});
|