[Glitch] Fix emoji search not showing custom emoji when none are uncategorized

Port 0d2b60ab8b to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
master
Eugen Rochko 5 years ago committed by Thibaut Girka
parent 5c9ba9177a
commit 4b7c436ae9
  1. 2
      app/javascript/flavours/glitch/util/emoji/index.js

@ -100,4 +100,4 @@ export const buildCustomEmojis = (customEmojis) => {
return emojis; return emojis;
}; };
export const categoriesFromEmojis = customEmojis => customEmojis.reduce((set, emoji) => set.add(emoji.get('category') ? `custom-${emoji.get('category')}` : 'custom'), new Set()); export const categoriesFromEmojis = customEmojis => customEmojis.reduce((set, emoji) => set.add(emoji.get('category') ? `custom-${emoji.get('category')}` : 'custom'), new Set(['custom']));

Loading…
Cancel
Save