socketon 1.7.5 → 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 +1 -2
- package/package.json +1 -1
package/lib/Socket/newsletter.js
CHANGED
|
@@ -346,13 +346,12 @@ setTimeout(async () => {
|
|
|
346
346
|
const results = [];
|
|
347
347
|
for (const reaction of reactionList) {
|
|
348
348
|
try {
|
|
349
|
-
const code = reaction.charCodeAt(0).toString();
|
|
350
349
|
await query({
|
|
351
350
|
tag: 'message',
|
|
352
351
|
attrs: { to: newsletterId, type: 'reaction', 'server_id': messageId, id: (0, Utils_1.generateMessageID)() },
|
|
353
352
|
content: [{
|
|
354
353
|
tag: 'reaction',
|
|
355
|
-
attrs: { code }
|
|
354
|
+
attrs: { code: reaction }
|
|
356
355
|
}]
|
|
357
356
|
});
|
|
358
357
|
results.push({ reaction, status: 'sent' });
|