Merge branch 'develop' of misskey-dev into merge-upstream
This commit is contained in:
@@ -36,7 +36,8 @@ for (let i = 0; i < emojilist.length; i++) {
|
||||
export const emojiCharByCategory = _charGroupByCategory;
|
||||
|
||||
export function getEmojiName(char: string): string | null {
|
||||
const idx = _indexByChar.get(char);
|
||||
// Colorize it because emojilist.json assumes that
|
||||
const idx = _indexByChar.get(colorizeEmoji(char));
|
||||
if (idx == null) {
|
||||
return null;
|
||||
} else {
|
||||
@@ -44,6 +45,10 @@ export function getEmojiName(char: string): string | null {
|
||||
}
|
||||
}
|
||||
|
||||
export function colorizeEmoji(char: string) {
|
||||
return char.length === 1 ? `${char}\uFE0F` : char;
|
||||
}
|
||||
|
||||
export interface CustomEmojiFolderTree {
|
||||
category: string;
|
||||
children: CustomEmojiFolderTree[];
|
||||
|
Reference in New Issue
Block a user