@periskope/baileys 6.7.16-alpha.3 → 6.7.16-alpha.5

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.
@@ -303,8 +303,10 @@ const extractGroupMetadata = (result) => {
303
303
  memberAddMode,
304
304
  participants: (0, WABinary_1.getBinaryNodeChildren)(group, 'participant').map(({ attrs }) => {
305
305
  return {
306
- id: attrs.jid,
306
+ id: group.attrs.addressing_mode == 'lid' ? attrs.phone_number : attrs.jid,
307
307
  admin: (attrs.type || null),
308
+ lid: attrs.lid,
309
+ jid: attrs.jid,
308
310
  };
309
311
  }),
310
312
  ephemeralDuration: eph ? +eph : undefined
@@ -3,6 +3,8 @@ export type GroupParticipant = (Contact & {
3
3
  isAdmin?: boolean;
4
4
  isSuperAdmin?: boolean;
5
5
  admin?: 'admin' | 'superadmin' | null;
6
+ } & {
7
+ jid?: string;
6
8
  });
7
9
  export type ParticipantAction = 'add' | 'remove' | 'promote' | 'demote' | 'modify';
8
10
  export type RequestJoinAction = 'created' | 'revoked' | 'rejected';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/baileys",
3
- "version": "6.7.16-alpha.3",
3
+ "version": "6.7.16-alpha.5",
4
4
  "description": "WhatsApp API",
5
5
  "keywords": [
6
6
  "whatsapp",