fix emoji caching

This commit is contained in:
Hazelnoot 2025-10-01 12:05:43 -04:00
parent df5aff9d91
commit bb0925224d
14 changed files with 552 additions and 288 deletions

View file

@ -820,7 +820,7 @@ export class ChatService {
reaction = normalizeEmojiString(reaction_);
} else {
const name = custom[1];
const emoji = (await this.customEmojiService.localEmojisCache.fetch()).get(name);
const emoji = await this.customEmojiService.emojisByKeyCache.fetchMaybe(name);
if (emoji == null) {
throw new Error('no such emoji');