Page MenuHomePhabricator

[lib] Refactor keyserver reducer pt.1
ClosedPublic

Authored by inka on Nov 7 2023, 7:51 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 24, 4:56 AM
Unknown Object (File)
Mon, Oct 28, 12:03 AM
Unknown Object (File)
Mon, Oct 28, 12:03 AM
Unknown Object (File)
Mon, Oct 28, 12:03 AM
Unknown Object (File)
Mon, Oct 28, 12:03 AM
Unknown Object (File)
Mon, Oct 28, 12:03 AM
Unknown Object (File)
Mon, Oct 28, 12:01 AM
Unknown Object (File)
Oct 26 2024, 5:05 AM
Subscribers

Details

Summary

issue: https://linear.app/comm/issue/ENG-4729/refactor-reducers
In this diff I refactored the firt two ifs of this reducer. The rest of the logic will be refactored in next diffs

Test Plan

Dispatched setNewSessionActionType and resetUserStateActionType, chceked that the reducer works as expected for them

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

inka published this revision for review.Nov 8 2023, 6:20 AM
lib/reducers/keyserver-reducer.js
30–40 ↗(On Diff #33199)

Will be updated in D9815

michal added inline comments.
lib/types/session-types.js
96–102 ↗(On Diff #33199)

Can we update this type to read-only?

This revision is now accepted and ready to land.Nov 14 2023, 4:06 AM

Update SetSessionPayload to be read only

This revision was automatically updated to reflect the committed changes.