HomePhabricator
Diffusion Comm c9e4b84ef13c

[keyserver] Fetch primary links only when a user is logged in

Description

[keyserver] Fetch primary links only when a user is logged in

Summary:
Calling userID getter on Viewer results in an exception when a user isn't logged in. A logged out user shouldn't have access to invite links, so we can return an empty array for them.

https://linear.app/comm/issue/ENG-4185/cant-open-web-app-if-not-already-logged-in-dev#comment-6dba4247

Test Plan: Open web app as a logged out user and check if it loads correctly. Log in and check if the links are fetched.

Reviewers: kamil, inka, michal, ashoat

Reviewed By: ashoat

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D8329

Details

Provenance
tomekAuthored on Jun 27 2023, 7:08 AM
Reviewer
ashoat
Differential Revision
D8329: [keyserver] Fetch primary links only when a user is logged in
Parents
rCOMM6fc36ae5cdde: [web] Add message search button
Branches
Unknown
Tags
Unknown