HomePhabricator
Diffusion Comm 34785f4641f4

[keyserver] Introduce `isCookieMissingSignedIdentityKeysBlob`

Description

[keyserver] Introduce isCookieMissingSignedIdentityKeysBlob

Summary:
Checks if there's an existing row in cookies table with id=cookieID with a NULL signed_identity_keys column.

We're going to use this check in handleInitialClientSocketMessage to determine whether or not to send SIGNED_IDENTITY_KEYS_BLOB request to client from keyserver.


Depends on D7049

Test Plan:
Called function from handleInitialClientSocketMessage:

if (viewer.cookieID) {
  isCookieMissingSignedIdentityKeysBlob(viewer.cookieID);
}

and set breakpoint within isCookieMissingSignedIdentityKeysBlob to check whether queryResult was as expected when signed_identity_keys was NULL and a valid stringified SignedIdentityKeysBlob:

Reviewers: ashoat

Reviewed By: ashoat

Differential Revision: https://phab.comm.dev/D7050

Details

Provenance
atulAuthored on Mar 14 2023, 12:14 PM
Reviewer
ashoat
Differential Revision
D7050: [keyserver] Introduce `isCookieMissingSignedIdentityKeysBlob`
Parents
rCOMMddca0507e9c1: [keyserver] Introduce `setCookieSignedIdentityKeysBlob`
Branches
Unknown
Tags
Unknown