This commit is contained in:
syuilo
2024-08-27 19:59:53 +09:00
parent e41ba1d177
commit 9ea7f21a95
2 changed files with 5 additions and 9 deletions

View File

@@ -19,15 +19,6 @@ function set(key: string, value: any) {
const storageCache = await get('emojis');
export const customEmojis = shallowRef<Misskey.entities.EmojiSimple[]>(Array.isArray(storageCache) ? storageCache : []);
export const customEmojiCategories = computed<[ ...string[], null ]>(() => {
const categories = new Set<string>();
for (const emoji of customEmojis.value) {
if (emoji.category && emoji.category !== 'null') {
categories.add(emoji.category);
}
}
return markRaw([...Array.from(categories), null]);
});
export const customEmojisMap = new Map<string, Misskey.entities.EmojiSimple>();
watch(customEmojis, emojis => {