Fix emoji unreact
Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1616
This commit is contained in:
parent
1616cc50e8
commit
9154b63892
1 changed files with 1 additions and 0 deletions
|
@ -85,6 +85,7 @@ export const simulateUnEmojiReact = (emojiReacts: ImmutableList<EmojiReaction>,
|
||||||
const newCount = (emojiReact.count || 1) - 1;
|
const newCount = (emojiReact.count || 1) - 1;
|
||||||
if (newCount < 1) return emojiReacts.delete(idx);
|
if (newCount < 1) return emojiReacts.delete(idx);
|
||||||
return emojiReacts.set(idx, emojiReactionSchema.parse({
|
return emojiReacts.set(idx, emojiReactionSchema.parse({
|
||||||
|
...emojiReact,
|
||||||
count: (emojiReact.count || 1) - 1,
|
count: (emojiReact.count || 1) - 1,
|
||||||
me: false,
|
me: false,
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Reference in a new issue