Page MenuHomePhabricator

[lib] Support creating private thread from user profile
ClosedPublic

Authored by ashoat on Sep 30 2024, 9:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 18, 11:53 AM
Unknown Object (File)
Wed, Dec 18, 11:53 AM
Unknown Object (File)
Wed, Dec 18, 11:52 AM
Unknown Object (File)
Wed, Dec 18, 11:52 AM
Unknown Object (File)
Nov 24 2024, 11:44 AM
Unknown Object (File)
Nov 24 2024, 9:06 AM
Unknown Object (File)
Nov 19 2024, 9:02 AM
Unknown Object (File)
Nov 10 2024, 4:20 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