From: Dessalines Date: Sun, 12 Apr 2020 15:45:44 +0000 (-0400) Subject: Make sure typing dropdown uses twemojis. X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/readmes/%7B%7D/%22%7Burl%7D/%7BelementUrl%7D?a=commitdiff_plain;h=2096bacd3480d05a56695efae8d765813374326e;p=lemmy.git Make sure typing dropdown uses twemojis. --- diff --git a/ui/src/utils.ts b/ui/src/utils.ts index 7c3c4205..fd23bf9e 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}:`;