HomePhabricator
Diffusion Comm acec0aca765a

[lib] Compute hashes only from one keyserver

Description

[lib] Compute hashes only from one keyserver

Summary:
When doing state check we should only compute hashes for entities from a keyserver performing the check.

https://linear.app/comm/issue/ENG-3915/refactor-generating-a-response-to-serverrequesttypescheck-state

Depends on D11183

Test Plan:
Checked that the state sync still works - modified a thread and an entry and verified that the sync updates values properly on the client side.
Modified state selectors in entries and threads specs to return one more entity from a different keyserver and verified that the hashes were still correct (also performed the test mentioned earlier with the modified code).

Reviewers: michal, atul, inka, kamil

Reviewed By: michal

Subscribers: ashoat

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

Details

Provenance
tomekAuthored on Feb 27 2024, 5:44 AM
Reviewer
michal
Differential Revision
D11184: [lib] Compute hashes only from one keyserver
Parents
rCOMMb47820b1a752: [lib] Compare only entities from one keyserver when checking the inconsistencies
Branches
Unknown
Tags
Unknown