[Glitch] Fix wasteful request to /api/v1/custom_emojis when not logged in

Port 1f762f4271 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Claire 2022-12-15 14:07:34 +01:00
parent b70c2e2167
commit 1e8aff072a
1 changed files with 3 additions and 2 deletions

View File

@ -27,8 +27,9 @@ store.dispatch(hydrateAction);
// check for deprecated local settings
store.dispatch(checkDeprecatedLocalSettings());
// load custom emojis
if (initialState.meta.me) {
store.dispatch(fetchCustomEmojis());
}
const createIdentityContext = state => ({
signedIn: !!state.meta.me,