HomePhabricator
Diffusion Comm 2ffa6b79192d

[lib] Refactor logout in reduceEntryInfos

Description

[lib] Refactor logout in reduceEntryInfos

Summary:
issue: ENG-5766
We don't want to remove lastUserInteractionCalendar for users using CSAT.
The rest of the reducer is already correct, because it checks new threads aand based on that removes entries. So if thread reducer removes threads related to the keyserver, the entires will be removed as well

Test Plan: Tested that if a user is connected to another keyserver and logs out of it, the corresponding entires are indeed removed. Tested that for a user not using CSAT, lastUserInteractionCalendar is still reset to 0

Reviewers: michal, kamil, ginsu

Reviewed By: michal

Subscribers: ashoat, tomek

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

Details

Provenance
inkaAuthored on Jan 16 2024, 3:13 AM
Reviewer
michal
Differential Revision
D10650: [lib] Refactor logout in reduceEntryInfos
Parents
rCOMM80756f7f6b2a: [lib] Stop removing policies on keyserver logout
Branches
Unknown
Tags
Unknown