Merge branch 'fix-unreact' into 'main'

Fix emoji unreact

Closes #1616

See merge request soapbox-pub/soapbox!2855
This commit is contained in:
Alex Gleason
2023-11-14 07:42:28 +00:00

View File

@ -85,6 +85,7 @@ export const simulateUnEmojiReact = (emojiReacts: ImmutableList<EmojiReaction>,
const newCount = (emojiReact.count || 1) - 1;
if (newCount < 1) return emojiReacts.delete(idx);
return emojiReacts.set(idx, emojiReactionSchema.parse({
...emojiReact,
count: (emojiReact.count || 1) - 1,
me: false,
}));