HomePhabricator
Diffusion Comm 3c9aefcd99b3

[native] Introduce RegistrationMode in EditUserAvatarProvider

Description

[native] Introduce RegistrationMode in EditUserAvatarProvider

Summary:
A consumer of the EditUserAvatarContext will be able to call setRegistrationMode to override what happens when an avatar is successfully selected.

This will allow the registration flow to get the avatar info without needing to change much other code.

Test Plan:
This was tested in combination with the rest of the stack. I tested:

  1. ENS flow, both when user has an ENS avatar and when they don't
  2. Setting an emoji avatar
  3. Setting an image avatar via camera
  4. Setting an image avatar via media library
  5. Tested avatar update flow after being logged in to make sure I didn't regress anything

Reviewers: ginsu, atul

Reviewed By: atul

Subscribers: tomek

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

Details

Provenance
ashoatAuthored on May 30 2023, 8:46 AM
Reviewer
atul
Differential Revision
D8041: [native] Introduce RegistrationMode in EditUserAvatarProvider
Parents
rCOMM9372f4589dfc: [Tunnelbroker] Remove usages of unwrap and expect
Branches
Unknown
Tags
Unknown