HomePhabricator
Diffusion Comm d1d99ca235f4

[lib] Join a thread from an invite link

Description

[lib] Join a thread from an invite link

Summary:
After joining a community, we check if a link is a thread link and join a thread if necessary.

https://linear.app/comm/issue/ENG-8250/join-a-thread-after-joining-a-community

Depends on D12424

Test Plan:
Tested following cases:

  1. Accepting a community link when a user isn't a member of the community
  2. Accepting a thread link when a user isn't a member of the community
  3. Accepting a thread link when a user is a member of the community and isn't a member of the thread
  4. Clicking a community link when a user is a member of the community
  5. Clicking a thread link when a user is a member of the thread
  6. Clicking an invalid link
  7. Accepting a thread link when a user isn't a member of the community with a modification on the server side so that joining a thread fails. This results in joining the community and a modal with This invite link may be expired. Please try again with another invite link. message.

Reviewers: inka, ginsu, kamil

Reviewed By: kamil

Subscribers: ashoat

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

Details

Provenance
tomekAuthored on Thu, Jun 13, 4:31 AM
Reviewer
kamil
Differential Revision
D12425: [lib] Join a thread from an invite link
Parents
rCOMM60115623e0ac: [lib] Define steps in link acceptance hook
Branches
Unknown
Tags
Unknown