Fix wrong reaction handling in messages with polls

Closes #259
This commit is contained in:
chylex 2024-12-31 04:59:33 +01:00
parent f1c4cd040e
commit 86adda610b
No known key found for this signature in database

View File

@ -286,7 +286,7 @@ const STATE = (function() {
}
if (msg.reactions.length > 0) {
obj.reactions = msg.reactions.map(reaction => {
obj.reactions = msg.reactions.filter(reaction => reaction.count > 0).map(reaction => {
const emoji = reaction.emoji;
const mapped = {