Page MenuHomePhabricator

[lib][web] Add `primaryIdentityPublicKey` entry to Redux
ClosedPublic

Authored by atul on Jan 28 2023, 3:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 5 2024, 12:29 AM
Unknown Object (File)
Apr 5 2024, 12:29 AM
Unknown Object (File)
Apr 5 2024, 12:29 AM
Unknown Object (File)
Apr 5 2024, 12:29 AM
Unknown Object (File)
Apr 5 2024, 12:29 AM
Unknown Object (File)
Apr 5 2024, 12:28 AM
Unknown Object (File)
Apr 5 2024, 12:23 AM
Unknown Object (File)
Mar 2 2024, 9:45 AM
Subscribers
None

Details

Summary

Will add actions and reducers and whatnot in subsequent diff. This is minimal change to include primaryIdentityPublicKey in Redux that doesn't break anything (to my knowledge).

Test Plan

Checked Redux DevTools on web and the primaryIdentityPublicKey appeared as expected. Also no flow errors.

Web:

0be8a5.png (1×1 px, 310 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.Jan 28 2023, 3:33 PM
atul edited the summary of this revision. (Show Details)
atul edited the test plan for this revision. (Show Details)

make sure to persist on web

ashoat requested changes to this revision.Jan 28 2023, 5:29 PM

Passing back to you with question – not clear why we need to put this in Redux on native given it's already persisted by CommCoreModule

native/redux/redux-setup.js
135 ↗(On Diff #21516)

I'm not sure we should be including this in Redux on native... isn't this handled by the JSI layer? I'd rather not have to worry about two values getting out of sync, but open to an argument for it

This revision now requires changes to proceed.Jan 28 2023, 5:29 PM

Passing back to you with question – not clear why we need to put this in Redux on native given it's already persisted by CommCoreModule

That's fair, was including on both web and native to keep things symmetrical (even if redundant on native) in case we want to reuse any logic or whatever... but will stick to just web for now.

atul retitled this revision from [lib][web][native] Add `primaryIdentityPublicKey` entry to Redux to [lib][web] Add `primaryIdentityPublicKey` entry to Redux.Jan 29 2023, 4:01 PM
atul edited the test plan for this revision. (Show Details)
tomek added 1 blocking reviewer(s): ashoat.
This revision is now accepted and ready to land.Jan 30 2023, 9:48 AM