Page MenuHomePhabricator

[lib] Refactor logout in reduceEntryInfos
ClosedPublic

Authored by inka on Jan 16 2024, 6:01 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jun 17, 4:34 AM
Unknown Object (File)
Wed, Jun 12, 7:29 AM
Unknown Object (File)
Sat, Jun 1, 3:46 PM
Unknown Object (File)
May 23 2024, 10:54 AM
Unknown Object (File)
May 20 2024, 3:11 AM
Unknown Object (File)
May 20 2024, 3:11 AM
Unknown Object (File)
May 20 2024, 3:11 AM
Unknown Object (File)
May 20 2024, 3:11 AM
Subscribers

Details

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

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

inka requested review of this revision.Jan 16 2024, 6:19 AM

As mentioned in other diffs, not sure if we need to chnage anything for logOutActionTypes.success

inka planned changes to this revision.EditedJan 17 2024, 8:16 AM

We decided to have a single action for identity and ks logout

lib/reducers/entry-reducer.js
184–185 ↗(On Diff #35776)

Same question as here

Merge identity delete account with keyserver delete account

This revision is now accepted and ready to land.Jan 25 2024, 6:25 AM
This revision was automatically updated to reflect the committed changes.