Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3356384
D11503.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D11503.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D11503: [web] Add invalidSessionRecovery checks for web
Attached
Detach File
Event Timeline
Log In to Comment