From a1d684b8543a46b0aa69cf3fc901f87e0c58f4ee Mon Sep 17 00:00:00 2001 From: George Rusu Date: Thu, 8 Jul 2021 14:19:42 -0700 Subject: Added refresh to see video thumbnails --- src/screens/profile/CaptionScreen.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src') 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 = ({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 = ({route, navigation}) => { return; } } - dispatch(loadUserMoments(userId)); + if (!isMediaAVideo) { + dispatch(loadUserMoments(userId)); + } if (profileCompletionStage) { dispatch(updateProfileCompletionStage(profileCompletionStage)); } -- cgit v1.2.3-70-g09d2