sanka-baileyss 2.2.6 → 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 -10
- package/package.json +1 -1
package/lib/Socket/groups.js
CHANGED
|
@@ -317,15 +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) ? 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
|
-
/*
|
|
329
320
|
return {
|
|
330
321
|
id: attrs.jid,
|
|
331
322
|
jid: isUserJid ? attrs.jid : (attrs.phone_number ? WABinary_1.jidNormalizedUser(attrs.phone_number) : undefined),
|
|
@@ -333,7 +324,7 @@ const extractGroupMetadata = (result) => {
|
|
|
333
324
|
admin: (attrs.type || null),
|
|
334
325
|
};
|
|
335
326
|
});
|
|
336
|
-
|
|
327
|
+
|
|
337
328
|
|
|
338
329
|
const metadata = {
|
|
339
330
|
id: groupId,
|