@ryuu-reinzz/haruka-lib 3.2.1 → 3.2.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.
Files changed (2) hide show
  1. package/main/socket.js +5 -8
  2. package/package.json +1 -1
package/main/socket.js CHANGED
@@ -184,7 +184,8 @@ export default function addProperty(socket, baileys) {
184
184
  businessOwnerJid = null,
185
185
  contextInfo = {},
186
186
  bottom_sheet = false,
187
- bottom_name = ""
187
+ bottom_name = "",
188
+ mentionedJid = []
188
189
  } = content;
189
190
 
190
191
 
@@ -409,15 +410,11 @@ export default function addProperty(socket, baileys) {
409
410
  jpegThumbnail: contextInfo.externalAdReply.jpegThumbnail,
410
411
  }),
411
412
  },
412
- ...(options.mentionedJid && {
413
- mentionedJid: options.mentionedJid,
414
- }),
415
- };
416
- } else if (options.mentionedJid) {
417
- messageContent.contextInfo = {
418
- mentionedJid: options.mentionedJid,
419
413
  };
420
414
  }
415
+ if (content.contextInfo.mentionedJid || mentionedJid) {
416
+ messageContent.contextInfo = contextInfo.mentionedJid ? contextInfo.mentionedJid : mentionedJid ? mentionedJid : []
417
+ };
421
418
 
422
419
  const payload = proto.Message.InteractiveMessage.create(messageContent);
423
420
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ryuu-reinzz/haruka-lib",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "description": "Library extra for bot WhatsApp",
5
5
  "main": "main/index.js",
6
6
  "type": "module",