HomePhabricator
Diffusion Comm 181fa7607ab6

[lib] Show "just you" for thread title if there are no members besides you

Description

[lib] Show "just you" for thread title if there are no members besides you

Summary:
This resolves ENG-2933, which was broken in D6615 when I removed the 'just you' special-case there.

Since filtering out the user (and pluralization) are now handled in getNameForThreadEntity, we need to check the length of the list there instead of in threadUIName now.

Test Plan: Make sure there are no empty strings in the web calendar filters, and that 'just you' appears where the empty strings previously did

Reviewers: inka, tomek, atul

Reviewed By: tomek

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

Details

Provenance
ashoatAuthored on Feb 6 2023, 5:27 AM
Reviewer
tomek
Differential Revision
D6628: [lib] Show "just you" for thread title if there are no members besides you
Parents
rCOMM0c5987e59de0: [lib] Pluralize NotifTexts.title when it's not a string
Branches
Unknown
Tags
Unknown