keithbaileys 1.0.0 → 1.0.2

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025-2026 Gifted Tech
3
+ Copyright (c) 2025 Mr Unknown
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": [2, 3000, 1032141294]
2
+ "version": [2, 3000, 1023223821]
3
3
  }
@@ -234,4 +234,4 @@ class GiftedStatus {
234
234
  }
235
235
  }
236
236
 
237
- module.exports = GiftedStatus;
237
+ module.exports = GiftedStatus;
@@ -594,16 +594,17 @@ const makeMessagesRecvSocket = (config) => {
594
594
  try {
595
595
  await Promise.all([
596
596
  processingMutex.mutex(async () => {
597
- var _a, _b, _c;
597
+ var _a;
598
598
  const msg = await processNotification(node);
599
599
  if (msg) {
600
- const participantOrRemote = node.attrs.participant || remoteJid;
601
- const isLidParticipant = (0, WABinary_1.isLidUser)(participantOrRemote);
602
- const fromMe = (0, WABinary_1.areJidsSameUser)(participantOrRemote, isLidParticipant ? ((_b = authState.creds.me) === null || _b === void 0 ? void 0 : _b.lid) : ((_c = authState.creds.me) === null || _c === void 0 ? void 0 : _c.id));
600
+ const fromMe = (0, WABinary_1.areJidsSameUser)(node.attrs.participant || remoteJid, authState.creds.me.id);
601
+ const { senderAlt: notifParticipantAlt, addressingMode: notifAddrMode } = (0, Utils_1.extractAddressingContext)(node);
603
602
  msg.key = {
604
603
  remoteJid,
605
604
  fromMe,
606
605
  participant: node.attrs.participant,
606
+ participantAlt: notifParticipantAlt,
607
+ addressingMode: notifAddrMode,
607
608
  id: node.attrs.id,
608
609
  ...(msg.key || {})
609
610
  };