There is now only one usage of updateImageUserAvatar from *EditUserAvatarProvider and it's in useNativeUpdateUserImageAvatar where the call is wrapped in a try/catch with native-specific "error surfacing" handled in the catch block.
Depends on D8339
Differential D8340
[native] Consume `useNativeUpdateUserImageAvatar` in `useSelectFromGalleryAndUpdateUserAvatar` Authored by atul on Jun 27 2023, 7:25 PM.
Details There is now only one usage of updateImageUserAvatar from *EditUserAvatarProvider and it's in useNativeUpdateUserImageAvatar where the call is wrapped in a try/catch with native-specific "error surfacing" handled in the catch block. Depends on D8339 selectFromGalleryAndUpdateUserAvatar is used in one place: EditUserAvatar. Specifically the select image from gallery flow. Similar to D8339, will break update_user_avatar endpoint and ensure that alert surfaces as expected: Will also test "happy case" where the update_user_avatar endpoint is working as expected.
Diff Detail
|