HomePhabricator
Diffusion Comm 82a9fdc14701

[lib] introduce getUserAvatarForThread function

Description

[lib] introduce getUserAvatarForThread function

Summary:
The getUserAvatarForThread function returns the user avatar for threads that are either PERSONAL or PRIVATE. We inject the user avatars in threadInfoFromRawThreadInfo so that it is already set, and when we later call useGetAvatarForThread (introduced in D7132) we will just return that

Depends on D7177

Test Plan:
Please see the screenshots below to see that the correct user avatar is being rendered on to a PERSONAL and PRIVATE thread

For reference my friend's avatar:

Screenshot 2023-03-26 at 2.03.53 AM.png (1×1 px, 750 KB)

For reference my avatar:

Screenshot 2023-03-26 at 2.03.55 AM.png (1×1 px, 810 KB)

Personal Threads:

Screenshot 2023-03-26 at 2.05.59 AM.png (1×1 px, 929 KB)

Private Thread:

Screenshot 2023-03-26 at 2.05.44 AM.png (262×704 px, 59 KB)

Reviewers: ashoat, atul

Reviewed By: ashoat

Subscribers: ashoat, tomek, atul

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

Details

Provenance
ginsuAuthored on Mar 26 2023, 7:13 PM
Reviewer
ashoat
Differential Revision
D7178: [lib] introduce getUserAvatarForThread function
Parents
rCOMM35699428c66f: [keyserver/lib/native/web] introduce color-utils and move color functions from…
Branches
Unknown
Tags
Unknown