Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3363221
D7051.id23732.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
D7051.id23732.diff
View Options
diff --git a/keyserver/src/socket/socket.js b/keyserver/src/socket/socket.js
--- a/keyserver/src/socket/socket.js
+++ b/keyserver/src/socket/socket.js
@@ -77,6 +77,7 @@
fetchViewerForSocket,
extendCookieLifespan,
createNewAnonymousCookie,
+ isCookieMissingSignedIdentityKeysBlob,
} from '../session/cookies.js';
import { Viewer } from '../session/viewer.js';
import { commitSessionUpdate } from '../updaters/session-updaters.js';
@@ -466,6 +467,9 @@
serverRequests.push({ type: serverRequestTypes.PLATFORM_DETAILS });
}
+ const isCookieMissingSignedIdentityKeysBlobPromise =
+ isCookieMissingSignedIdentityKeysBlob(viewer.cookieID);
+
if (!sessionInitializationResult.sessionContinued) {
const [threadsResult, entriesResult, currentUserInfo, knownUserInfos] =
await Promise.all([
@@ -542,6 +546,15 @@
});
}
+ const signedIdentityKeysBlobMissing =
+ await isCookieMissingSignedIdentityKeysBlobPromise;
+
+ if (signedIdentityKeysBlobMissing) {
+ serverRequests.push({
+ type: serverRequestTypes.SIGNED_IDENTITY_KEYS_BLOB,
+ });
+ }
+
if (serverRequests.length > 0 || clientResponses.length > 0) {
// We send this message first since the STATE_SYNC triggers the client's
// connection status to shift to "connected", and we want to make sure the
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 26, 12:54 AM (21 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2581189
Default Alt Text
D7051.id23732.diff (1 KB)
Attached To
Mode
D7051: [keyserver] Send `SIGNED_IDENTITY_KEYS_BLOB` request to client if data missing in DB
Attached
Detach File
Event Timeline
Log In to Comment