2
0
Fork 0

cleanup frontend emoji reaction code

This commit is contained in:
fef 2022-11-29 08:54:35 +00:00 committed by neatchee
commit d249994de8
11 changed files with 64 additions and 71 deletions

View file

@ -1,11 +0,0 @@
import { createSelector } from 'reselect';
import { Map as ImmutableMap } from 'immutable';
const buildCustomEmojiMap = createSelector(
[state => state.get('custom_emojis')],
items => items.reduce(
(map, emoji) => map.set(emoji.get('shortcode'), emoji),
ImmutableMap(),
),
);
export default buildCustomEmojiMap;