@periskope/baileys 6.7.17-alpha.1 → 6.7.17-alpha.3

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.
@@ -304,8 +304,9 @@ const extractGroupMetadata = (result) => {
304
304
  memberAddMode,
305
305
  participants: (0, WABinary_1.getBinaryNodeChildren)(group, 'participant').map(({ attrs }) => {
306
306
  return {
307
+ ...attrs,
307
308
  id: attrs.jid,
308
- admin: (attrs.type || null),
309
+ admin: (attrs.type || null)
309
310
  };
310
311
  }),
311
312
  ephemeralDuration: eph ? +eph : undefined
@@ -512,7 +512,8 @@ const makeMessagesRecvSocket = (config) => {
512
512
  const isLid = attrs.from.includes('lid');
513
513
  const isNodeFromMe = (0, WABinary_1.areJidsSameUser)(attrs.participant || attrs.from, isLid ? (_a = authState.creds.me) === null || _a === void 0 ? void 0 : _a.lid : (_b = authState.creds.me) === null || _b === void 0 ? void 0 : _b.id);
514
514
  const remoteJid = !isNodeFromMe || (0, WABinary_1.isJidGroup)(attrs.from) ? attrs.from : attrs.recipient;
515
- const fromMe = !attrs.recipient || (attrs.type === 'retry' && isNodeFromMe);
515
+ const fromMe = !attrs.recipient || ((attrs.type === 'retry' || attrs.type === 'sender')
516
+ && isNodeFromMe);
516
517
  const key = {
517
518
  remoteJid,
518
519
  id: '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/baileys",
3
- "version": "6.7.17-alpha.1",
3
+ "version": "6.7.17-alpha.3",
4
4
  "description": "WhatsApp API", "keywords": [
5
5
  "whatsapp",
6
6
  "automation"