Make sure typing dropdown uses twemojis.

This commit is contained in:
Dessalines 2020-04-12 11:45:44 -04:00
parent e9535cd01d
commit 2096bacd34

5
ui/src/utils.ts vendored
View file

@ -482,8 +482,9 @@ export function setupTribute(): Tribute {
{ {
trigger: ':', trigger: ':',
menuItemTemplate: (item: any) => { menuItemTemplate: (item: any) => {
let emoji = `:${item.original.key}:`; let shortName = `:${item.original.key}:`;
return `${item.original.val} ${emoji}`; let twemojiIcon = twemoji.parse(item.original.val);
return `${twemojiIcon} ${shortName}`;
}, },
selectTemplate: (item: any) => { selectTemplate: (item: any) => {
return `:${item.original.key}:`; return `:${item.original.key}:`;