Page MenuHomePhabricator

[lib] Make sure we set isViewer in useExistingThreadInfoFinder
ClosedPublic

Authored by ashoat on Sep 30 2024, 10:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Mar 25, 6:31 PM
Unknown Object (File)
Sun, Mar 9, 5:27 PM
Unknown Object (File)
Fri, Mar 7, 5:49 PM
Unknown Object (File)
Feb 24 2025, 3:11 AM
Unknown Object (File)
Feb 18 2025, 2:29 AM
Unknown Object (File)
Feb 18 2025, 2:29 AM
Unknown Object (File)
Feb 18 2025, 2:29 AM
Unknown Object (File)
Feb 18 2025, 2:29 AM
Subscribers
None

Details

Summary

When we call createPendingThread in useExistingThreadInfoFinder, we need to include isViewer in order to make sure a PRIVATE thread is rendered as eg. "ashoat" instead of "just you". This is because the naming is based on ifJustViewer, which only applies if the members list only includes the viewer.

Depends on D13546

Test Plan

Confirm that I see eg. "ashoat" instead of "just you" for PRIVATE thread uiName

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable