1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-27 14:28:49 +09:00

fix: emoji colorization

This commit is contained in:
Acid Chicken (硫酸鶏) 2024-03-02 05:53:43 +09:00
parent fe5efd926e
commit f704891932
No known key found for this signature in database
GPG Key ID: 3E87B98A3F6BAB99

View File

@ -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 {