Page MenuHomePhabricator

[lib] Support creating private thread from user profile
ClosedPublic

Authored by ashoat on Mon, Sep 30, 9:52 PM.
Tags
None
Referenced Files
F2858609: D13539.id44769.diff
Tue, Oct 1, 11:32 AM
F2858346: D13539.id.diff
Tue, Oct 1, 10:37 AM
F2858273: D13539.diff
Tue, Oct 1, 10:10 AM
F2853630: D13539.id44720.diff
Mon, Sep 30, 10:29 PM
F2853541: D13539.id.diff
Mon, Sep 30, 10:27 PM
F2853382: D13539.diff
Mon, Sep 30, 10:12 PM
Subscribers
None

Details

Summary

Before this diff, when no private thread existed, we wouldn't show a chat link in the user's own user profile. We didn't need to consider such a scenario since we always created a GENESIS_PRIVATE thread on account creation.

This diff changes behavior such that if !oldestPrivateThreadInfo (no private chat exists), we no longer return null from useUserProfileThreadInfo, and instead continue on to the createPendingPersonalOrPrivateThread call.

Depends on D13538

Test Plan

In combination with the rest of the stack, test creating a PRIVATE thread via thread list search on both web and native

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable