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 From 882e76dbb14440b6d61f217682628a54f1071ebe Mon Sep 17 00:00:00 2001 From: George Rusu Date: Thu, 8 Jul 2021 14:41:11 -0700 Subject: Lint, update alert helper text --- src/screens/profile/CaptionScreen.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/screens/profile/CaptionScreen.tsx b/src/screens/profile/CaptionScreen.tsx index 6b647716..7fef73db 100644 --- a/src/screens/profile/CaptionScreen.tsx +++ b/src/screens/profile/CaptionScreen.tsx @@ -25,7 +25,6 @@ import {TAGG_LIGHT_BLUE_2} from '../../constants'; import { ERROR_SOMETHING_WENT_WRONG_REFRESH, ERROR_UPLOAD, - SUCCESS_PIC_UPLOAD, } from '../../constants/strings'; import {MainStackParams} from '../../routes'; import { @@ -123,7 +122,7 @@ const CaptionScreen: React.FC = ({route, navigation}) => { setTimeout(() => { if (isMediaAVideo) { Alert.alert( - 'Beautiful, the Moment was uploaded successfully! Refresh to see it!', + 'Beautiful, the Moment was uploaded successfully! Check back in a bit and refresh to see it!', ); } else { Alert.alert(''); -- cgit v1.2.3-70-g09d2