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
F3445016: D8017.diff
Tue, Dec 10, 11:27 PM
Unknown Object (File)
Wed, Dec 4, 2:13 AM
Unknown Object (File)
Wed, Dec 4, 2:09 AM
Unknown Object (File)
Wed, Dec 4, 1:24 AM
Unknown Object (File)
Thu, Nov 28, 7:46 PM
Unknown Object (File)
Nov 10 2024, 1:59 PM
Unknown Object (File)
Oct 31 2024, 5:13 PM
Unknown Object (File)
Oct 27 2024, 8:19 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
No Lint Coverage
Unit
No Test Coverage

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