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
F3350563: D12320.diff
Fri, Nov 22, 11:07 PM
Unknown Object (File)
Thu, Nov 14, 7:31 PM
Unknown Object (File)
Wed, Nov 13, 3:03 AM
Unknown Object (File)
Wed, Nov 13, 3:03 AM
Unknown Object (File)
Wed, Nov 13, 3:03 AM
Unknown Object (File)
Sat, Nov 2, 12:22 AM
Unknown Object (File)
Oct 11 2024, 7:22 PM
Unknown Object (File)
Oct 11 2024, 7:22 PM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable