Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33319526
D7543.1768840140.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1007 B
Referenced Files
None
Subscribers
None
D7543.1768840140.diff
View Options
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 {
+ return await updateUserAvatarCall(imageAvatarUpdateRequest);
+ } catch {
+ Alert.alert('Avatar update failed', 'Unable to update avatar.');
+ }
+ })(),
);
setProcessingOrUploadInProgress(false);
}, [
@@ -319,7 +325,13 @@
dispatchActionPromise(
updateUserAvatarActionTypes,
- updateUserAvatarCall(removeAvatarRequest),
+ (async () => {
+ try {
+ return await updateUserAvatarCall(removeAvatarRequest);
+ } catch {
+ Alert.alert('Avatar update failed', 'Unable to update avatar.');
+ }
+ })(),
);
}, [dispatchActionPromise, updateUserAvatarCall]);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 19, 4:29 PM (13 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5957197
Default Alt Text
D7543.1768840140.diff (1007 B)
Attached To
Mode
D7543: [native] Alert user when `UPDATE_USER_AVATAR` call fails
Attached
Detach File
Event Timeline
Log In to Comment