Page MenuHomePhabricator

D11503.diff
No OneTemporary

D11503.diff

diff --git a/web/redux/redux-setup.js b/web/redux/redux-setup.js
--- a/web/redux/redux-setup.js
+++ b/web/redux/redux-setup.js
@@ -9,6 +9,7 @@
deleteAccountActionTypes,
identityRegisterActionTypes,
identityLogInActionTypes,
+ keyserverAuthActionTypes,
} from 'lib/actions/user-actions.js';
import { setNewSessionActionType } from 'lib/keyserver-conn/keyserver-conn-types.js';
import {
@@ -27,6 +28,7 @@
import {
invalidSessionDowngrade,
identityInvalidSessionDowngrade,
+ invalidSessionRecovery,
} from 'lib/shared/session-utils.js';
import type { CommunityStore } from 'lib/types/community-types.js';
import type { MessageID, DBOpsStore } from 'lib/types/db-ops-types.js';
@@ -154,6 +156,24 @@
integrityStoreOperations: [],
};
+ if (
+ (action.type === setNewSessionActionType &&
+ action.payload.sessionChange.currentUserInfo &&
+ invalidSessionRecovery(
+ state,
+ action.payload.sessionChange.currentUserInfo,
+ action.payload.authActionSource,
+ )) ||
+ (action.type === keyserverAuthActionTypes.success &&
+ invalidSessionRecovery(
+ state,
+ action.payload.preRequestUserInfo,
+ action.payload.authActionSource,
+ ))
+ ) {
+ return state;
+ }
+
if (action.type === setInitialReduxState) {
const { userInfos, keyserverInfos, actualizedCalendarQuery, ...rest } =
action.payload;

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 6:43 PM (20 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2576986
Default Alt Text
D11503.diff (1 KB)

Event Timeline