Improve reaction_deck api
This commit is contained in:
parent
7e4d9a2d0d
commit
1cf9bb24d7
3 changed files with 16 additions and 22 deletions
|
@ -45,7 +45,7 @@ const getFrequentlyUsedEmojis = createSelector([
|
|||
const { emojiCounters, reactionDeck } = data;
|
||||
let deckEmojis = reactionDeck
|
||||
.toArray()
|
||||
.map((e) => e.getIn(['emoji', 'shortcode']))
|
||||
.map((e) => e.get('name'))
|
||||
.filter((e) => e)
|
||||
.map((e) => shortCodes[e] || e);
|
||||
deckEmojis = [...new Set(deckEmojis)];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue