Page MenuHomePhabricator

[native] Replace setENSUserAvatar and removeUserAvatar with generic setUserAvatar
ClosedPublic

Authored by ashoat on May 29 2023, 5:34 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 4, 9:09 PM
Unknown Object (File)
Thu, Apr 4, 9:09 PM
Unknown Object (File)
Thu, Apr 4, 9:09 PM
Unknown Object (File)
Thu, Apr 4, 9:09 PM
Unknown Object (File)
Thu, Apr 4, 9:01 PM
Unknown Object (File)
Feb 11 2024, 1:04 AM
Unknown Object (File)
Feb 11 2024, 1:03 AM
Unknown Object (File)
Feb 11 2024, 12:22 AM
Subscribers

Details

Summary

I have two goals here:

  1. Simplify the code
  2. Open a generic pathway for EmojiUserAvatarCreation to use the EditUserAvatarProvider, so that every place is going through it. I want to unify all pathways through EditUserAvatarProvider so I can override what happens when an avatar is selected, so that I can maximize code reuse in the registration flow
Test Plan

Test clearing user avatar via iOS simulator

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Make setUserAvatar return Promise<void> so that it can be used in the registration flow with the expectation that it calls the keyserver

This revision is now accepted and ready to land.May 30 2023, 9:12 AM