HomePhabricator
Diffusion Comm ac08dc316650

[lib] Join a community on an overridden keyserver

Description

[lib] Join a community on an overridden keyserver

Summary:
In order to join a keyserver we need to make sure that the user is authenticated. To do that, we need to make sure that the keyserver is present in the store and that the keyserver connection handler successfully performed the auth.

The solution is to replace a simple async action with creating a new promise, that is resolved or rejected after a timeout or after a successful or unsuccessful join operation.

Depends on D10991

Test Plan:
Check on web that:

  1. An invalid link is displayed as invalid
  2. We are able to accept a link to a keyserver we're authenticated with
  3. A timeout is performed if the auth takes too long

I haven't tested if joining a community works when the handler performs successful auth - this requires first testing https://linear.app/comm/issue/ENG-6114/final-testing-task

Reviewers: michal, bartek, rohan, inka

Reviewed By: inka

Subscribers: ashoat

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

Details

Provenance
tomekAuthored on Feb 8 2024, 3:27 AM
Reviewer
inka
Differential Revision
D10992: [lib] Join a community on an overridden keyserver
Parents
rCOMM097836906978: [native][web][lib] Extract common invite link logic
Branches
Unknown
Tags
Unknown