Page MenuHomePhabricator

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

Authored by inka on Dec 29 2023, 5:20 AM.
Tags
None
Referenced Files
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
Unknown Object (File)
Nov 22 2024, 9:33 PM
Unknown Object (File)
Nov 22 2024, 9:09 PM
Unknown Object (File)
Nov 22 2024, 5:02 PM
Unknown Object (File)
Nov 5 2024, 8:49 AM
Unknown Object (File)
Oct 16 2024, 3:26 AM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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