This diff allows calling any keyserver to check if a link is valid.
https://linear.app/comm/issue/ENG-5423/join-a-community-on-a-given-keyserver
Depends on D10206
Differential D10290
[lib] Modify link verification to call the proper keyserver tomek on Dec 11 2023, 6:39 AM. Authored by Tags None Referenced Files
Subscribers
Details This diff allows calling any keyserver to check if a link is valid. https://linear.app/comm/issue/ENG-5423/join-a-community-on-a-given-keyserver Depends on D10206 Check if clicking an invite link opens a modal on web. Also checked if providing an explicit keyserver id works.
Diff Detail
Event TimelineComment Actions You forgot to add a hook wrapping the function. We don't want the calling code to include useKeyserverCall, we want this to be hidden away.
Comment Actions This shouldn't work. You pass keyserverInfos: { [keyserverOverride.keyserverURL]: { urlPrefix: keyserverOverride.keyserverURL, }, }, into callKeyserverEndpoint, but then the request is keyed with keyserverID. So you will be trying to call keyserverID keyserver, for which you don't have an entry in your overridden keyserverInfos. Comment Actions Use the correct key in overrides. Tested it by specifying keyserver override in web link const validateLink = useVerifyInviteLink({ keyserverID: ashoatKeyserverID, keyserverURL: 'http://localhost:3000/keyserver', }); This calls the proper endpoint, but causes some other issues - e.g. invite link |