sanka-baileyss 2.2.4 → 2.2.6

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.
@@ -317,6 +317,15 @@ const extractGroupMetadata = (result) => {
317
317
  const isUserJid = WABinary_1.isJidUser(attrs.jid);
318
318
  const isLidJid = WABinary_1.isLidUser && WABinary_1.isLidUser(attrs.jid); // Soporte condicional para LID
319
319
 
320
+ return {
321
+ id: attrs.jid,
322
+ jid: (0, WABinary_1.isJidUser)(attrs.jid) ? attrs.jid : (0, WABinary_1.jidNormalizedUser)(attrs.phone_number),
323
+ lid: (0, WABinary_1.isLidUser)(attrs.jid) ? attrs.jid : attrs.lid,
324
+ admin: (attrs.type || null)
325
+ };
326
+ });
327
+
328
+ /*
320
329
  return {
321
330
  id: attrs.jid,
322
331
  jid: isUserJid ? attrs.jid : (attrs.phone_number ? WABinary_1.jidNormalizedUser(attrs.phone_number) : undefined),
@@ -324,6 +333,7 @@ const extractGroupMetadata = (result) => {
324
333
  admin: (attrs.type || null),
325
334
  };
326
335
  });
336
+ */
327
337
 
328
338
  const metadata = {
329
339
  id: groupId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sanka-baileyss",
3
- "version": "2.2.4",
3
+ "version": "2.2.6",
4
4
  "description": "WhatsApp API Modification By Sanka_Vollerei",
5
5
  "keywords": [
6
6
  "Baileys",