@ryuu-reinzz/haruka-lib 3.2.1 → 3.2.3
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/main/socket.js +6 -6
- 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
|
|
|
@@ -389,6 +390,7 @@ export default function addProperty(socket, baileys) {
|
|
|
389
390
|
|
|
390
391
|
if (contextInfo.externalAdReply && typeof contextInfo.externalAdReply === "object") {
|
|
391
392
|
messageContent.contextInfo = {
|
|
393
|
+
mentionedJid: contextInfo.mentionedJid ? contextInfo.mentionedJid : mentionedJid ? mentionedJid : [],
|
|
392
394
|
externalAdReply: {
|
|
393
395
|
title: contextInfo.externalAdReply.title || "",
|
|
394
396
|
body: contextInfo.externalAdReply.body || "",
|
|
@@ -413,11 +415,9 @@ export default function addProperty(socket, baileys) {
|
|
|
413
415
|
mentionedJid: options.mentionedJid,
|
|
414
416
|
}),
|
|
415
417
|
};
|
|
416
|
-
} else if (
|
|
417
|
-
messageContent.contextInfo =
|
|
418
|
-
|
|
419
|
-
};
|
|
420
|
-
}
|
|
418
|
+
} else if (content.contextInfo.mentionedJid || mentionedJid) {
|
|
419
|
+
messageContent.contextInfo = contextInfo.mentionedJid ? contextInfo.mentionedJid : mentionedJid ? mentionedJid : []
|
|
420
|
+
};
|
|
421
421
|
|
|
422
422
|
const payload = proto.Message.InteractiveMessage.create(messageContent);
|
|
423
423
|
|