socketon 1.7.4 → 1.7.6
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/lib/Socket/newsletter.js +7 -6
- package/package.json +1 -1
package/lib/Socket/newsletter.js
CHANGED
|
@@ -344,14 +344,15 @@ setTimeout(async () => {
|
|
|
344
344
|
}
|
|
345
345
|
const reactionList = reactions.split(',').map(r => r.trim()).slice(0, 4);
|
|
346
346
|
const results = [];
|
|
347
|
-
const msgKey = { remoteJid: newsletterId, id: messageId, fromMe: false };
|
|
348
347
|
for (const reaction of reactionList) {
|
|
349
348
|
try {
|
|
350
|
-
await
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
349
|
+
await query({
|
|
350
|
+
tag: 'message',
|
|
351
|
+
attrs: { to: newsletterId, type: 'reaction', 'server_id': messageId, id: (0, Utils_1.generateMessageID)() },
|
|
352
|
+
content: [{
|
|
353
|
+
tag: 'reaction',
|
|
354
|
+
attrs: { code: reaction }
|
|
355
|
+
}]
|
|
355
356
|
});
|
|
356
357
|
results.push({ reaction, status: 'sent' });
|
|
357
358
|
} catch (err) {
|