sanka-baileyss 2.2.5 → 2.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.
- package/lib/Socket/groups.js +1 -13
- package/package.json +1 -1
package/lib/Socket/groups.js
CHANGED
|
@@ -317,18 +317,6 @@ 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)
|
|
323
|
-
? attrs.jid
|
|
324
|
-
: (attrs.phone_number ? (0, WABinary_1.jidNormalizedUser)(attrs.phone_number) : undefined),
|
|
325
|
-
lid: typeof WABinary_1.isLidUser === 'function' && (0, WABinary_1.isLidUser)(attrs.jid)
|
|
326
|
-
? attrs.jid
|
|
327
|
-
: attrs.lid,
|
|
328
|
-
admin: attrs.type || null,
|
|
329
|
-
};
|
|
330
|
-
});
|
|
331
|
-
/*
|
|
332
320
|
return {
|
|
333
321
|
id: attrs.jid,
|
|
334
322
|
jid: isUserJid ? attrs.jid : (attrs.phone_number ? WABinary_1.jidNormalizedUser(attrs.phone_number) : undefined),
|
|
@@ -336,7 +324,7 @@ const extractGroupMetadata = (result) => {
|
|
|
336
324
|
admin: (attrs.type || null),
|
|
337
325
|
};
|
|
338
326
|
});
|
|
339
|
-
|
|
327
|
+
|
|
340
328
|
|
|
341
329
|
const metadata = {
|
|
342
330
|
id: groupId,
|