Emoji Picker: Fix missing all emojis (#1378)
This commit is contained in:
parent
66b8a2803c
commit
37d866e31d
@ -58,6 +58,10 @@ const EmojiCategory: FC<OwnProps> = ({
|
||||
>
|
||||
{shouldRender && category.emojis.map((name) => {
|
||||
const emoji = allEmojis[name];
|
||||
// Recent emojis may contain emoticons that are no longer in the list
|
||||
if (!emoji) {
|
||||
return undefined;
|
||||
}
|
||||
// Some emojis have multiple skins and are represented as an Object with emojis for all skins.
|
||||
// For now, we select only the first emoji with 'neutral' skin.
|
||||
const displayedEmoji = 'id' in emoji ? emoji : emoji[1];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user