From d6d7680c7b52b34017dddc2dead6ebe42bb1eb8f Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 12 Apr 2020 11:45:44 -0400 Subject: [PATCH] Make sure typing dropdown uses twemojis. --- ui/src/utils.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/src/utils.ts b/ui/src/utils.ts index 7c3c4205a..fd23bf9ea 100644 --- a/ui/src/utils.ts +++ b/ui/src/utils.ts @@ -482,8 +482,9 @@ export function setupTribute(): Tribute { { trigger: ':', menuItemTemplate: (item: any) => { - let emoji = `:${item.original.key}:`; - return `${item.original.val} ${emoji}`; + let shortName = `:${item.original.key}:`; + let twemojiIcon = twemoji.parse(item.original.val); + return `${twemojiIcon} ${shortName}`; }, selectTemplate: (item: any) => { return `:${item.original.key}:`;