mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 03:53:09 +02:00
fix: emoji colorization
This commit is contained in:
parent
fe5efd926e
commit
f704891932
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ export const emojiCharByCategory = _charGroupByCategory;
|
|||
|
||||
export function getUnicodeEmoji(char: string): UnicodeEmojiDef | null {
|
||||
// Colorize it because emojilist.json assumes that
|
||||
return unicodeEmojisMap.get(colorizeEmoji(char)) ?? null;
|
||||
return unicodeEmojisMap.get(colorizeEmoji(char)) ?? unicodeEmojisMap.get(char) ?? null;
|
||||
}
|
||||
|
||||
export function getEmojiName(char: string): string | null {
|
||||
|
|
Loading…
Reference in a new issue