@ryuu-reinzz/haruka-lib 3.2.0 → 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.
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  # How to use
10
10
  ``` bash
11
- npm install @ryuu-reinzz/haruka-lib@3.0.0-beta.1
11
+ npm install @ryuu-reinzz/haruka-lib@3.2.1
12
12
  ```
13
13
 
14
14
  *how to use it in JavaScript:*
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.0",
3
+ "version": "3.2.2",
4
4
  "description": "Library extra for bot WhatsApp",
5
5
  "main": "main/index.js",
6
6
  "type": "module",