fix emoji caching
This commit is contained in:
parent
df5aff9d91
commit
bb0925224d
14 changed files with 552 additions and 288 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue