HomePhabricator
Diffusion Comm 05d347d4e09a

[lib] Modify the approach to handling invite link acceptance

Description

[lib] Modify the approach to handling invite link acceptance

Summary:
Later in the stack we need to join two threads which requires dispatching two success actions - something not possible in the current approach where we create a promise and pass it to a single dispatchActionPromise. In this new approach, we call dispatchActionPromise in an effect which allows adding the second effect later in the stack.

Note: this diff breaks a loading status. It is fixed in the next diff where steps are introduced. This approach is more efficient than fixing it in this diff.

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

Depends on D12422

Test Plan: Tested in combination with the rest of the stack by checking if joining a community link works.

Reviewers: inka, ginsu, kamil

Reviewed By: kamil

Subscribers: ashoat

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

Details

Provenance
tomekAuthored on Wed, Jun 12, 9:22 AM
Reviewer
kamil
Differential Revision
D12423: [lib] Modify the approach to handling invite link acceptance
Parents
rCOMM56ba1a3c7ec6: [web][native] Display both thread and community names in the modal
Branches
Unknown
Tags
Unknown