Page MenuHomePhabricator

D7543.id25410.diff
No OneTemporary

D7543.id25410.diff

diff --git a/native/avatars/avatar-hooks.js b/native/avatars/avatar-hooks.js
--- a/native/avatars/avatar-hooks.js
+++ b/native/avatars/avatar-hooks.js
@@ -219,7 +219,13 @@
dispatchActionPromise(
updateUserAvatarActionTypes,
- updateUserAvatarCall(imageAvatarUpdateRequest),
+ (async () => {
+ try {
+ await updateUserAvatarCall(imageAvatarUpdateRequest);
+ } catch {
+ Alert.alert('Avatar update failed', 'Unable to update avatar.');
+ }
+ })(),
);
setProcessingOrUploadInProgress(false);
}, [
@@ -318,7 +324,13 @@
dispatchActionPromise(
updateUserAvatarActionTypes,
- updateUserAvatarCall(removeAvatarRequest),
+ (async () => {
+ try {
+ await updateUserAvatarCall(removeAvatarRequest);
+ } catch {
+ Alert.alert('Avatar update failed', 'Unable to update avatar.');
+ }
+ })(),
);
}, [dispatchActionPromise, updateUserAvatarCall]);

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 2, 2:38 AM (21 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2606532
Default Alt Text
D7543.id25410.diff (993 B)

Event Timeline