Fix emoji search not showing custom emoji when none are uncategorized (#11920)

Fix #11903
signup-info-prompt
Eugen Rochko 2019-09-23 00:48:43 +02:00 committed by GitHub
parent 8c4b5f7cef
commit 0d2b60ab8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -99,4 +99,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']));