Page MenuHomePhabricator

[lib][web][native] Create defaultKeyserverInfo
ClosedPublic

Authored by inka on Dec 29 2023, 5:20 AM.
Tags
None
Referenced Files
F3528934: D10484.id35654.diff
Tue, Dec 24, 11:12 AM
F3528933: D10484.id35492.diff
Tue, Dec 24, 11:12 AM
F3528932: D10484.id35083.diff
Tue, Dec 24, 11:12 AM
F3528911: D10484.id.diff
Tue, Dec 24, 11:12 AM
F3528893: D10484.diff
Tue, Dec 24, 11:11 AM
Unknown Object (File)
Fri, Dec 13, 2:12 PM
Unknown Object (File)
Sun, Dec 8, 1:41 PM
Unknown Object (File)
Tue, Nov 26, 1:12 PM
Subscribers

Details

Summary

issue: https://linear.app/comm/issue/ENG-6299/save-new-keyserver-on-set-new-session
I will need this value in yet another place so I think it makes sense to extrac it

Test Plan

Tested that add it's still possible to add a keyserver, and the entry looks like it did before

Diff Detail

Repository
rCOMM Comm
Branch
inka/login_reducers
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

inka requested review of this revision.Dec 29 2023, 5:40 AM

seems reasonable, thanks for factoring that out!

This revision is now accepted and ready to land.Dec 29 2023, 12:31 PM
michal added inline comments.
lib/types/keyserver-types.js
27 ↗(On Diff #35083)

This feels a bit hacky, setting it to a temporary, empty string.

Maybe we could make it a function that takes urlPrefix as a parameter?

lib/types/keyserver-types.js
27 ↗(On Diff #35083)

Not sure if this is the right solution, but if the intention is to skip the urlPrefix field, we can consider changing the type to Omit<KeyserverInfo, 'urlPrefix'>.

Turn into a function, use in default states