From 9154b638926e40a1b7632ee8be8a827dfc31adb3 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 14 Nov 2023 01:41:45 -0600 Subject: [PATCH] Fix emoji unreact Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1616 --- src/utils/emoji-reacts.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/emoji-reacts.ts b/src/utils/emoji-reacts.ts index 559644bd7c..8bbdc07b1c 100644 --- a/src/utils/emoji-reacts.ts +++ b/src/utils/emoji-reacts.ts @@ -85,6 +85,7 @@ export const simulateUnEmojiReact = (emojiReacts: ImmutableList, 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, }));