@ryuu-reinzz/haruka-lib 3.2.2 → 3.2.4

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.
Files changed (2) hide show
  1. package/main/socket.js +4 -3
  2. package/package.json +1 -1
package/main/socket.js CHANGED
@@ -390,6 +390,7 @@ export default function addProperty(socket, baileys) {
390
390
 
391
391
  if (contextInfo.externalAdReply && typeof contextInfo.externalAdReply === "object") {
392
392
  messageContent.contextInfo = {
393
+ mentionedJid: contextInfo.mentionedJid ? contextInfo.mentionedJid : mentionedJid ? mentionedJid : [],
393
394
  externalAdReply: {
394
395
  title: contextInfo.externalAdReply.title || "",
395
396
  body: contextInfo.externalAdReply.body || "",
@@ -410,10 +411,10 @@ export default function addProperty(socket, baileys) {
410
411
  jpegThumbnail: contextInfo.externalAdReply.jpegThumbnail,
411
412
  }),
412
413
  },
414
+ ...(options.mentionedJid && {
415
+ mentionedJid: options.mentionedJid,
416
+ }),
413
417
  };
414
- }
415
- if (content.contextInfo.mentionedJid || mentionedJid) {
416
- messageContent.contextInfo = contextInfo.mentionedJid ? contextInfo.mentionedJid : mentionedJid ? mentionedJid : []
417
418
  };
418
419
 
419
420
  const payload = proto.Message.InteractiveMessage.create(messageContent);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ryuu-reinzz/haruka-lib",
3
- "version": "3.2.2",
3
+ "version": "3.2.4",
4
4
  "description": "Library extra for bot WhatsApp",
5
5
  "main": "main/index.js",
6
6
  "type": "module",