diff --git a/app/gabsocial/reducers/meta.js b/app/gabsocial/reducers/meta.js index 011717525..c5cba7c98 100644 --- a/app/gabsocial/reducers/meta.js +++ b/app/gabsocial/reducers/meta.js @@ -1,7 +1,8 @@ 'use strict'; import { STORE_HYDRATE } from '../actions/store'; -import { Map as ImmutableMap } from 'immutable'; +import { ME_FETCH_SUCCESS } from 'gabsocial/actions/me'; +import { Map as ImmutableMap, fromJS } from 'immutable'; const initialState = ImmutableMap({ streaming_api_base_url: null, @@ -12,6 +13,10 @@ export default function meta(state = initialState, action) { switch(action.type) { case STORE_HYDRATE: return state.merge(action.state.get('meta')); + case ME_FETCH_SUCCESS: + const me = fromJS(action.me); + const pleroPrefs = me.get('pleroma').delete('settings_store'); + return state.set('pleroma', pleroPrefs); default: return state; }