@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 +1 -1
- package/main/socket.js +5 -8
- package/package.json +1 -1
package/README.md
CHANGED
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
|
|