[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:
- Accepting a community link when a user isn't a member of the community
- Accepting a thread link when a user isn't a member of the community
- Accepting a thread link when a user is a member of the community and isn't a member of the thread
- Clicking a community link when a user is a member of the community
- Clicking a thread link when a user is a member of the thread
- Clicking an invalid link
- 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