diff --git a/native/redux/action-types.js b/native/redux/action-types.js --- a/native/redux/action-types.js +++ b/native/redux/action-types.js @@ -23,6 +23,7 @@ export const setStoreLoadedActionType = 'SET_STORE_LOADED'; export const setReduxStateActionType = 'SET_REDUX_STATE'; export const setLocalSettingsActionType = 'SET_LOCAL_SETTINGS'; +export const setAccessTokenType = 'SET_ACCESS_TOKEN'; export const backgroundActionTypes: Set = new Set([ saveMessagesActionType, @@ -65,4 +66,8 @@ | { +type: 'SET_STORE_LOADED', } - | { +type: 'SET_LOCAL_SETTINGS', +payload: LocalSettings }; + | { +type: 'SET_LOCAL_SETTINGS', +payload: LocalSettings } + | { + +type: 'SET_ACCESS_TOKEN', + +payload: string, + }; diff --git a/native/redux/redux-setup.js b/native/redux/redux-setup.js --- a/native/redux/redux-setup.js +++ b/native/redux/redux-setup.js @@ -45,6 +45,7 @@ setStoreLoadedActionType, type Action, setLocalSettingsActionType, + setAccessTokenType, } from './action-types.js'; import { remoteReduxDevServerConfig } from './dev-tools.js'; import { defaultDimensionsInfo } from './dimensions-updater.react.js'; @@ -309,6 +310,11 @@ ...state, localSettings: { ...state.localSettings, ...action.payload }, }; + } else if (action.type === setAccessTokenType) { + return { + ...state, + commServicesAccessToken: action.payload, + }; } else if ( action.type === logOutActionTypes.started || action.type === logOutActionTypes.success ||