Page MenuHomePhabricator

D7051.id23732.diff
No OneTemporary

D7051.id23732.diff

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

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)

Event Timeline