Skip to content
Snippets Groups Projects
Commit a9c2d373 authored by HJ's avatar HJ :fire:
Browse files

ok i'm dumb, no manual caching needed tehepero

parent 5384d3b7
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment