HomePhabricator
Diffusion Comm a5ce04f66d57

[lib] Introduce new ifJustViewer field in ThreadEntity for PRIVATE threads

Description

[lib] Introduce new ifJustViewer field in ThreadEntity for PRIVATE threads

Summary:
We currently name new ENS users' PRIVATE threads after their wallet address. In order to instead display their ENS name, we want to make the EntityText framework support some way to render an unnamed PRIVATE thread's name as just their username.

Currently we display such threads as "just you". In this diff, we introduce a new ifJustViewer field to make it possible to show "ashoat.eth" instead.

Test Plan: In combination with the following diff, I tested this by deleting and recreating my ashoat.eth account in my local web environment, and confirming that my new PRIVATE thread was displayed with the name "ashoat.eth"

Reviewers: tomek, atul

Reviewed By: tomek

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

Details

Provenance
ashoatAuthored on Apr 15 2023, 11:16 AM
Reviewer
tomek
Differential Revision
D7453: [lib] Introduce new ifJustViewer field in ThreadEntity for PRIVATE threads
Parents
rCOMM9ddc64a1c283: [native] Left-align pending thread header titles
Branches
Unknown
Tags
Unknown