diff --git a/lib/reducers/data-loaded-reducer.js b/lib/reducers/data-loaded-reducer.js --- a/lib/reducers/data-loaded-reducer.js +++ b/lib/reducers/data-loaded-reducer.js @@ -9,6 +9,7 @@ } from '../actions/user-actions.js'; import { setNewSessionActionType } from '../keyserver-conn/keyserver-conn-types.js'; import type { BaseAction } from '../types/redux-types.js'; +import { usingCommServicesAccessToken } from '../utils/services-utils.js'; import { ashoatKeyserverID } from '../utils/validation-utils.js'; export default function reduceDataLoaded( @@ -22,7 +23,8 @@ } else if ( action.type === setNewSessionActionType && action.payload.sessionChange.currentUserInfo && - action.payload.sessionChange.currentUserInfo.anonymous + action.payload.sessionChange.currentUserInfo.anonymous && + !usingCommServicesAccessToken ) { return false; } else if ( diff --git a/lib/reducers/services-access-token-reducer.js b/lib/reducers/services-access-token-reducer.js --- a/lib/reducers/services-access-token-reducer.js +++ b/lib/reducers/services-access-token-reducer.js @@ -7,6 +7,7 @@ } from '../actions/user-actions.js'; import { setNewSessionActionType } from '../keyserver-conn/keyserver-conn-types.js'; import type { BaseAction } from '../types/redux-types.js'; +import { usingCommServicesAccessToken } from '../utils/services-utils.js'; export default function reduceServicesAccessToken( state: ?string, @@ -17,7 +18,8 @@ } else if ( action.type === setNewSessionActionType && action.payload.sessionChange.currentUserInfo && - action.payload.sessionChange.currentUserInfo.anonymous + action.payload.sessionChange.currentUserInfo.anonymous && + !usingCommServicesAccessToken ) { return null; } else if ( diff --git a/lib/reducers/theme-reducer.js b/lib/reducers/theme-reducer.js --- a/lib/reducers/theme-reducer.js +++ b/lib/reducers/theme-reducer.js @@ -15,6 +15,7 @@ defaultGlobalThemeInfo, type GlobalThemeInfo, } from '../types/theme-types.js'; +import { usingCommServicesAccessToken } from '../utils/services-utils.js'; export default function reduceGlobalThemeInfo( state: GlobalThemeInfo, @@ -30,7 +31,8 @@ } else if ( action.type === setNewSessionActionType && action.payload.sessionChange.currentUserInfo && - action.payload.sessionChange.currentUserInfo.anonymous + action.payload.sessionChange.currentUserInfo.anonymous && + !usingCommServicesAccessToken ) { return defaultGlobalThemeInfo; } else if ( diff --git a/lib/reducers/user-reducer.js b/lib/reducers/user-reducer.js --- a/lib/reducers/user-reducer.js +++ b/lib/reducers/user-reducer.js @@ -65,7 +65,8 @@ } } else if ( action.type === setNewSessionActionType && - action.payload.sessionChange.currentUserInfo + action.payload.sessionChange.currentUserInfo && + !usingCommServicesAccessToken ) { const { sessionChange } = action.payload; if (!_isEqual(sessionChange.currentUserInfo)(state)) {