ok i'm dumb, no manual caching needed tehepero
This commit is contained in:
parent
5384d3b7a2
commit
a9c2d37315
|
@ -250,21 +250,15 @@ const instance = {
|
|||
}, {})
|
||||
},
|
||||
standardEmojiList (state) {
|
||||
if (!state.standardEmojiList) {
|
||||
state.standardEmojiList = SORTED_EMOJI_GROUP_IDS
|
||||
return SORTED_EMOJI_GROUP_IDS
|
||||
.map(groupId => (state.emoji[groupId] || []).map(k => injectAnnotations(k, state.unicodeEmojiAnnotations)))
|
||||
.reduce((a, b) => a.concat(b), [])
|
||||
}
|
||||
return state.standardEmojiList
|
||||
},
|
||||
standardEmojiGroupList (state) {
|
||||
if (!state.standardEmojiGroupList) {
|
||||
state.standardEmojiGroupList = SORTED_EMOJI_GROUP_IDS.map(groupId => ({
|
||||
return SORTED_EMOJI_GROUP_IDS.map(groupId => ({
|
||||
id: groupId,
|
||||
emojis: (state.emoji[groupId] || []).map(k => injectAnnotations(k, state.unicodeEmojiAnnotations))
|
||||
}))
|
||||
}
|
||||
return state.standardEmojiGroupList
|
||||
},
|
||||
instanceDomain (state) {
|
||||
return new URL(state.server).hostname
|
||||
|
|
Loading…
Reference in a new issue