HomePhabricator
Diffusion Comm b425f8ee17b1

[lib] Refactor fullStateSyncActionType in reducers

Description

[lib] Refactor fullStateSyncActionType in reducers

Summary:
issue: ENG-6484
fullStateSyncActionType always concerns only one keyserver. It is a "specific" action. It has a keyserverID in the payload.

reduceIntegrityStore -> we should not clear the whole store, only remove the threads related to this keyserver

reduceThreadInfos -> we shouldn't remove all threads, only the threads related to this keyserver

reduceCurrentUserInfo -> it should not change currentUserInfo for clients not relying on authoritative keyserver

reduceUserInfos -> it shouldn't be removing user infos for clients not relying on authoritative keyserver

Test Plan: tested that only threads related to the keyserver the action concerns are removed from thread store, and only their hashes are removed from integrity store. Checked that for clients relying on authoritative keyserver currentUserInfo and userStore are being changed

Reviewers: michal, ginsu, kamil

Reviewed By: michal

Subscribers: will, ashoat, tomek

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

Details

Provenance
inkaAuthored on Mar 13 2024, 8:55 AM
Reviewer
michal
Differential Revision
D11313: [lib] Refactor fullStateSyncActionType in reducers
Parents
rCOMMf3c665ffa54b: [identity] Update invalid username check on Identity service
Branches
Unknown
Tags
Unknown