[Glitch] Fix wasteful request to /api/v1/custom_emojis when not logged in
Port 76d3dc633f
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
lolsob-rspec
parent
f96cfe3ec4
commit
2c542650d3
|
@ -27,8 +27,9 @@ store.dispatch(hydrateAction);
|
||||||
// check for deprecated local settings
|
// check for deprecated local settings
|
||||||
store.dispatch(checkDeprecatedLocalSettings());
|
store.dispatch(checkDeprecatedLocalSettings());
|
||||||
|
|
||||||
// load custom emojis
|
if (initialState.meta.me) {
|
||||||
store.dispatch(fetchCustomEmojis());
|
store.dispatch(fetchCustomEmojis());
|
||||||
|
}
|
||||||
|
|
||||||
const createIdentityContext = state => ({
|
const createIdentityContext = state => ({
|
||||||
signedIn: !!state.meta.me,
|
signedIn: !!state.meta.me,
|
||||||
|
|
Loading…
Reference in New Issue