Emoji loading performance (#38784)

This commit is contained in:
Echo authored and GitHub committed 2026-04-23 07:48:00 +00:00
1 parent fdb2563abf
commit 5bc69ea668
7 files changed
+67 -23

No files matched your search

@@ -267,6 +267,11 @@ export async function searchCustomEmojisByShortcodes(shortcodes: string[]) {
return results.filter((emoji) => shortcodes.includes(emoji.shortcode));
}
export async function loadAllCustomEmoji() {
const db = await loadDB();
return db.getAll('custom');
}
export async function loadLegacyShortcodesByShortcode(shortcode: string) {
const db = await loadDB();
return db.getFromIndex(