HomePhabricator
Diffusion Comm df8e1881cd14

[native] use stringForUserExplicit function to determine username text for…

Description

[native] use stringForUserExplicit function to determine username text for profiles

Summary:
At this point the UserProfile component needed a userInfo of type AccountUserInfo to render. However, we need to consider the case when we view a profile and we don't know the username on the client (an anonymous user). stringForUserExplicit is a function that handles this case for us and this also allows us to switch the userInfo prop type to be the more permissive UserInfo type

Depends on D9094

Test Plan:
Please see screenshot below, and confirmed that UserInfos with known usernames still show the correct username

Screenshot 2023-09-11 at 1.52.35 AM.png (1×1 px, 810 KB)

Reviewers: atul, inka

Reviewed By: inka

Subscribers: ashoat, tomek

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

Details

Provenance
ginsuAuthored on Sep 13 2023, 3:01 PM
Reviewer
inka
Differential Revision
D9119: [native] use stringForUserExplicit function to determine username text for profiles
Parents
rCOMMabee4be80946: [native] Remove `ChatThreadList` class component
Branches
Unknown
Tags
Unknown