From a9c2d373157708c9d08289edb55069a9a054a7e6 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 15 Aug 2024 21:49:45 +0300 Subject: [PATCH] ok i'm dumb, no manual caching needed tehepero --- src/modules/instance.js | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/src/modules/instance.js b/src/modules/instance.js index 2281141f..7ec7a5df 100644 --- a/src/modules/instance.js +++ b/src/modules/instance.js @@ -250,21 +250,15 @@ const instance = { }, {}) }, standardEmojiList (state) { - if (!state.standardEmojiList) { - state.standardEmojiList = SORTED_EMOJI_GROUP_IDS - .map(groupId => (state.emoji[groupId] || []).map(k => injectAnnotations(k, state.unicodeEmojiAnnotations))) - .reduce((a, b) => a.concat(b), []) - } - return state.standardEmojiList + return SORTED_EMOJI_GROUP_IDS + .map(groupId => (state.emoji[groupId] || []).map(k => injectAnnotations(k, state.unicodeEmojiAnnotations))) + .reduce((a, b) => a.concat(b), []) }, standardEmojiGroupList (state) { - if (!state.standardEmojiGroupList) { - state.standardEmojiGroupList = SORTED_EMOJI_GROUP_IDS.map(groupId => ({ - id: groupId, - emojis: (state.emoji[groupId] || []).map(k => injectAnnotations(k, state.unicodeEmojiAnnotations)) - })) - } - return state.standardEmojiGroupList + return SORTED_EMOJI_GROUP_IDS.map(groupId => ({ + id: groupId, + emojis: (state.emoji[groupId] || []).map(k => injectAnnotations(k, state.unicodeEmojiAnnotations)) + })) }, instanceDomain (state) { return new URL(state.server).hostname