Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32514999
D10949.1767120616.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D10949.1767120616.diff
View Options
diff --git a/lib/reducers/keyserver-reducer.js b/lib/reducers/keyserver-reducer.js
--- a/lib/reducers/keyserver-reducer.js
+++ b/lib/reducers/keyserver-reducer.js
@@ -125,8 +125,9 @@
};
} else if (action.type === setNewSessionActionType) {
const { keyserverID, sessionChange } = action.payload;
+ const gotUserCookie = sessionChange.cookie?.startsWith('user=');
if (!state.keyserverInfos[keyserverID]) {
- if (sessionChange.cookie?.startsWith('user=')) {
+ if (gotUserCookie) {
console.log(
'received sessionChange with user cookie, ' +
`but keyserver ${keyserverID} is not in KeyserverStore!`,
@@ -160,6 +161,19 @@
};
keyserverUpdated = true;
}
+ if (
+ state.keyserverInfos[keyserverID].connection.sessionRecoveryInProgress &&
+ (gotUserCookie || sessionChange.cookieInvalidated)
+ ) {
+ newKeyserverInfo = {
+ ...newKeyserverInfo,
+ connection: {
+ ...newKeyserverInfo.connection,
+ sessionRecoveryInProgress: false,
+ },
+ };
+ keyserverUpdated = true;
+ }
const operations: ReplaceKeyserverOperation[] = [];
if (keyserverUpdated) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 30, 6:50 PM (12 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5869046
Default Alt Text
D10949.1767120616.diff (1 KB)
Attached To
Mode
D10949: [lib] Conclude sessionRecoveryInProgress when user cookie is received or session is invalidated
Attached
Detach File
Event Timeline
Log In to Comment