HomePhabricator
Diffusion Comm 5bd1e72ccc56

[native] add edit avatar badge to thread avatar

Description

[native] add edit avatar badge to thread avatar

Summary:
add edit avatar badge to thread avatar. Most of this code was ported over from profile-screen.react.js; however, with thread avatars we need to make sure that this badge renders conditonally, since there are some threads where the user should not be allowed to edit thread avatar, whereas a user avatar can always be edited by the user

Depends on D7359

Test Plan:
Please see the screenshots to see the changes I made:

Screenshot 2023-04-10 at 3.43.52 PM.png (1×1 px, 817 KB)

Personal Threads:

Screenshot 2023-04-10 at 3.44.15 PM.png (1×1 px, 813 KB)

Private Thread:

Screenshot 2023-04-10 at 3.44.02 PM.png (1×1 px, 819 KB)

Reviewers: ashoat, atul

Reviewed By: ashoat

Subscribers: ashoat, tomek, atul

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

Details

Provenance
ginsuAuthored on Apr 13 2023, 9:33 AM
Reviewer
ashoat
Differential Revision
D7378: [native] add edit avatar badge to thread avatar
Parents
rCOMM8c77b3ae455b: [native] implement onPressSetAvatar function
Branches
Unknown
Tags
Unknown