HomePhabricator
Diffusion Comm 30bbf4162d48

[native] add feature flag to avatars render work

Description

[native] add feature flag to avatars render work

Summary:
added AVATARS_DISPLAY feature flag to all avatars render work that is ready to land. For this diff created a new hook called useShouldRenderAvatars which determines if the current user has the feature flag "on" and returns a boolean to either render or not render the avatar. The criteria for having the AVATARS_DISPLAY feature flag on is that they need to be a staff user. In subsequent diffs I will add the feature flag when introducing things like the thread avatars and user avatars in chat screen.


Depends on D7069

Linear Task: https://linear.app/comm/issue/ENG-3305/avatars-feature-flag-service

Test Plan:
Ginsu who is a staff user can see avatars, but Dan who is not a staff avatar can not see the rendered avatars on their screen:

Ginsu's screen:

Dan's screen:

Reviewers: ashoat, atul, tomek

Reviewed By: ashoat

Subscribers: ashoat, tomek, atul

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

Details

Provenance
ginsuAuthored on Mar 21 2023, 9:23 AM
Reviewer
ashoat
Differential Revision
D7099: [native] add feature flag to avatars render work
Parents
rCOMM7dd079eabea8: [native] render the rest of the user avatars
Branches
Unknown
Tags
Unknown