Page MenuHomePhabricator

[lib][web][native] Navigate to a thread after joining a community
ClosedPublic

Authored by tomek on Jun 5 2024, 6:20 AM.
Tags
None
Referenced Files
F2897586: D12320.id41067.diff
Fri, Oct 4, 11:48 PM
Unknown Object (File)
Tue, Sep 10, 4:39 PM
Unknown Object (File)
Tue, Sep 10, 4:39 PM
Unknown Object (File)
Tue, Sep 10, 4:37 PM
Unknown Object (File)
Tue, Sep 10, 4:36 PM
Unknown Object (File)
Aug 26 2024, 11:39 AM
Unknown Object (File)
Aug 10 2024, 7:01 AM
Unknown Object (File)
Aug 10 2024, 7:01 AM
Subscribers

Details

Summary

Instead of closing a modal immediately, we schedule a new effect that will navigate to a thread or close a modal, depending on the presence of the thread in the store. We need to run this as an effect in the next render, because we need to wait for the successful join action to be dispatched.

https://linear.app/comm/issue/ENG-8018/navigate-to-a-community-after-accepting-an-invite-link

Depends on D12317

Test Plan

On both web and native: check if the behavior is correct when a user joins a community, is already a member, or a link is invalid.

Diff Detail

Repository
rCOMM Comm
Branch
links
Lint
No Lint Coverage
Unit
No Test Coverage