HomePhabricator
Diffusion Comm 944f05c38c6a

[native] Process and upload image for image avatar in `EditAvatar`

Tags
None
Referenced Files
F492962: 17de9d.png
Apr 18 2023, 8:44 AM
File Not Attached
Subscribers
None

Description

[native] Process and upload image for image avatar in EditAvatar

Summary:
We're able to process and upload image for image avatar and get back uploadID. However, before we're able to include uploadID in an image avatar update request we'll need additional information about thread/user passed into EditAvatar. It looks like the actual Avatars are being displayed as child of EditAvatar... I wonder if it makes sense to move UserAvatar and ThreadAvatar "within` EditAvatar and display them conditionally based on props?


Depends on D7476

Test Plan:
Logged result of processMedia and observed that it was as expected.

Checked uploads table and saw uploaded images:

17de9d.png (192×3 px, 96 KB)

Reviewers: ashoat, ginsu

Reviewed By: ashoat

Subscribers: tomek

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

Details

Provenance
atulAuthored on Apr 18 2023, 8:29 AM
Reviewer
ashoat
Differential Revision
D7481: [native] Process and upload image for image avatar in `EditAvatar`
Parents
rCOMM8ce8efd3731d: [native] Introduce `openPhotoGallery` in `EditAvatar` component
Branches
Unknown
Tags
Unknown