fixup! Change emoji reactions to be grouped by shortcode

This commit is contained in:
noellabo 2023-02-10 11:03:05 +09:00
parent 71b428e5c7
commit 074b37c759
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ const updateEmojiReactionCount = (state, emojiReaction) => updateEmojiReaction(s
const addEmojiReaction = (state, id, name, domain, url, static_url) => updateEmojiReaction(state, id, name, domain, url, static_url, x => x.update('count', y => y + 1).update('account_ids', z => z.push(me)));
const removeEmojiReaction = (state, id, name, domain, url, static_url) => updateEmojiReaction(state, id, name, domain, url, static_url, x => x.update('count', y => y - 1).update('account_ids', z => z.filter(id => id != me)));
const removeEmojiReaction = (state, id, name, domain, url, static_url) => updateEmojiReaction(state, id, name, domain, url, static_url, x => x.update('count', y => y - 1).update('account_ids', z => z.filter(id => id !== me)));
const initialState = ImmutableMap();