@realvare/based 2.7.60 → 2.7.61

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.
@@ -871,8 +871,17 @@ const makeMessagesRecvSocket = (config) => {
871
871
  var _a, _b, _c, _d, _e, _f;
872
872
  await decrypt();
873
873
  // if the message is from a group, and contains mentions, resolve the LIDs to JIDs
874
+ const contextInfo = msg.message?.extendedTextMessage?.contextInfo;
875
+ if (contextInfo) {
876
+ // Unconditionally resolve participant and mentioned JIDs
877
+ if (contextInfo.participant) {
878
+ contextInfo.participant = resolveJid(contextInfo.participant);
879
+ }
880
+ if (contextInfo.mentionedJid) {
881
+ contextInfo.mentionedJid = contextInfo.mentionedJid.map(resolveJid);
882
+ }
883
+ }
874
884
  if ((0, WABinary_1.isJidGroup)(msg.key.remoteJid)) {
875
- const contextInfo = msg.message?.extendedTextMessage?.contextInfo;
876
885
  if (contextInfo) {
877
886
  const participant = contextInfo.participant;
878
887
  const mentionedJid = contextInfo.mentionedJid;
@@ -47,6 +47,7 @@ function decodeMessageNode(stanza, meId, meLid) {
47
47
  const senderLid = (_b = stanza === null || stanza === void 0 ? void 0 : stanza.attrs) === null || _b === void 0 ? void 0 : _b.sender_lid;
48
48
  const participant = stanza.attrs.participant;
49
49
  const participantLid = (_c = stanza === null || stanza === void 0 ? void 0 : stanza.attrs) === null || _c === void 0 ? void 0 : _c.participant_lid;
50
+ const participantPn = (_d = stanza === null || stanza === void 0 ? void 0 : stanza.attrs) === null || _d === void 0 ? void 0 : _d.participant_pn;
50
51
  const recipient = stanza.attrs.recipient;
51
52
  const isMe = (jid) => (0, WABinary_1.areJidsSameUser)(jid, meId);
52
53
  const isMeLid = (jid) => (0, WABinary_1.areJidsSameUser)(jid, meLid);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realvare/based",
3
- "version": "2.7.60",
3
+ "version": "2.7.61",
4
4
  "description": "whatsapp api by sam",
5
5
  "keywords": [
6
6
  "baileys",