kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Fix emoji unreact
Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1616environments/review-main-yi2y9f/deployments/4263
rodzic
1616cc50e8
commit
9154b63892
|
@ -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,
|
||||
}));
|
||||
|
|
Ładowanie…
Reference in New Issue