skylerss 2.0.0 → 2.0.1

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.
@@ -284,16 +284,12 @@ const makeChatsSocket = (config) => {
284
284
 
285
285
  if ((0, WABinary_1.isLidUser)(normalizedJid)) {
286
286
  lid = normalizedJid;
287
- // Se for LID, idealmente precisaríamos do PN para bloquear
288
- // Como não temos Store, tentamos sem pn_jid primeiro ou buscamos via USync
289
287
  } else if ((0, WABinary_1.isPnUser)(normalizedJid)) {
290
- // Se for PN, o WhatsApp exige o LID para o campo 'jid' e o PN para 'pn_jid'
291
288
  const result = await onWhatsApp(normalizedJid);
292
289
  if (result && result[0] && result[0].lid) {
293
290
  lid = result[0].lid;
294
291
  pn_jid = normalizedJid;
295
292
  } else {
296
- // Fallback: se não achar LID, tenta enviar o JID original (pode falhar com 400 em contas novas)
297
293
  lid = normalizedJid;
298
294
  }
299
295
  }
@@ -312,8 +308,14 @@ const makeChatsSocket = (config) => {
312
308
  },
313
309
  content: [
314
310
  {
315
- tag: 'item',
316
- attrs: itemAttrs
311
+ tag: 'blocklist',
312
+ attrs: {},
313
+ content: [
314
+ {
315
+ tag: 'item',
316
+ attrs: itemAttrs
317
+ }
318
+ ]
317
319
  }
318
320
  ]
319
321
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skylerss",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "skylerss - API WhatsApp Web Moderna baseada em Baileys",
5
5
  "keywords": [
6
6
  "skylerss",