Page MenuHomePhabricator

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

Authored by tomek on Wed, Jun 5, 6:20 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jun 22, 6:34 PM
Unknown Object (File)
Sat, Jun 22, 8:07 AM
Unknown Object (File)
Sat, Jun 22, 4:33 AM
Unknown Object (File)
Fri, Jun 21, 6:39 PM
Unknown Object (File)
Thu, Jun 20, 8:48 PM
Unknown Object (File)
Mon, Jun 17, 8:06 PM
Unknown Object (File)
Mon, Jun 17, 3:39 PM
Unknown Object (File)
Sun, Jun 16, 9:36 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