From c6764a89a45f5905cb401423fb23ddd565a92213 Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Tue, 7 Jun 2022 15:26:24 -0400 Subject: [PATCH] do not fetch unicode emojis --- app/components/emoji/index.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/components/emoji/index.tsx b/app/components/emoji/index.tsx index 103c6d0cb..090fe3ad3 100644 --- a/app/components/emoji/index.tsx +++ b/app/components/emoji/index.tsx @@ -54,7 +54,6 @@ const Emoji = (props: Props) => { let unicode; let imageUrl = ''; const name = emojiName.trim(); - if (EmojiIndicesByAlias.has(name)) { const emoji = Emojis[EmojiIndicesByAlias.get(name)!]; if (emoji.category === 'custom') { @@ -62,7 +61,7 @@ const Emoji = (props: Props) => { } else { unicode = emoji.image; } - } else if (!isUnicodeEmoji(name)) { + } else { const custom = customEmojis.find((ce) => ce.name === name); if (custom) { try { @@ -71,7 +70,7 @@ const Emoji = (props: Props) => { } catch { // do nothing } - } else if (name) { + } else if (name && !isUnicodeEmoji(name)) { fetchCustomEmojiInBatch(serverUrl, name); } }