HomePhabricator
Diffusion Comm 9c9b1d17bd87

[lib] Remove threads from calendar filters on logout

Description

[lib] Remove threads from calendar filters on logout

Summary:
issue: ENG-5988
We want to remove all ids of threads that belong to the keyserver the user is logging out of.
IT'S VERY IMPORTANT THAT THE CURRENT BEHAVIOUR STAYS AS IS FOR USERS NOT USING CSAT. It will be the case for all diffs in this stack. Logout / delete account actions will not be replaced like login was, so we are using the same action types and hiding the old logic behind the flag.

Test Plan: Tested that if the user logs out and usingCommServicesAccessToken === true then threads that belong to the keyserver the user is logging out of are deleted. Tested that if usingCommServicesAccessToken === false, then filters are set to default values

Reviewers: michal, kamil, ginsu

Reviewed By: michal

Subscribers: ashoat, tomek

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

Details

Provenance
inkaAuthored on Jan 16 2024, 1:15 AM
Reviewer
michal
Differential Revision
D10647: [lib] Remove threads from calendar filters on logout
Parents
rCOMM1382d11ea838: [lib] Refactor draft reducer
Branches
Unknown
Tags
Unknown