aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Rusu <george@tagg.id>2021-07-08 14:19:42 -0700
committerGeorge Rusu <george@tagg.id>2021-07-08 14:19:42 -0700
commita1d684b8543a46b0aa69cf3fc901f87e0c58f4ee (patch)
treeba853817b0981d60a39280ad4bab7b23dfac0308
parent083675eec3ff5b7122e43097fe565afb78beec46 (diff)
Added refresh to see video thumbnails
-rw-r--r--src/screens/profile/CaptionScreen.tsx12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/screens/profile/CaptionScreen.tsx b/src/screens/profile/CaptionScreen.tsx
index fac00f21..6b647716 100644
--- a/src/screens/profile/CaptionScreen.tsx
+++ b/src/screens/profile/CaptionScreen.tsx
@@ -121,7 +121,13 @@ const CaptionScreen: React.FC<CaptionScreenProps> = ({route, navigation}) => {
} else {
navigateToProfile();
setTimeout(() => {
- Alert.alert(SUCCESS_PIC_UPLOAD);
+ if (isMediaAVideo) {
+ Alert.alert(
+ 'Beautiful, the Moment was uploaded successfully! Refresh to see it!',
+ );
+ } else {
+ Alert.alert('');
+ }
}, 500);
}
};
@@ -173,7 +179,9 @@ const CaptionScreen: React.FC<CaptionScreenProps> = ({route, navigation}) => {
return;
}
}
- dispatch(loadUserMoments(userId));
+ if (!isMediaAVideo) {
+ dispatch(loadUserMoments(userId));
+ }
if (profileCompletionStage) {
dispatch(updateProfileCompletionStage(profileCompletionStage));
}