HomePhabricator
Diffusion Comm 2d4e0c353da3

[lib] Update useUserProfileThreadInfo to consider thick threads

Description

[lib] Update useUserProfileThreadInfo to consider thick threads

Summary:
If a thick thread exists with the user whose profile we are viewing, we should display it.

When there are multiple, we'll select the oldest thread (by creation time). This matches behavior of pendingToRealizedThreadIDsSelector and useExistingThreadInfoFinder.

Depends on D13532

Test Plan: Tested viewing user profile on both web and native with a user with whom the viewer has a thick thread

Reviewers: tomek, kamil, inka

Reviewed By: tomek

Differential Revision: https://phab.comm.dev/D13533

Details

Provenance
ashoatAuthored on Sep 27 2024, 11:34 AM
Reviewer
tomek
Differential Revision
D13533: [lib] Update useUserProfileThreadInfo to consider thick threads
Parents
rCOMMdd3e4e60a203: [lib] Fix thread search order for thick threads
Branches
Unknown
Tags
Unknown