diff options
author | Ivan Chen <ivan@tagg.id> | 2021-07-09 12:38:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-09 12:38:10 -0400 |
commit | 048eaf68cc804055a7a1b3ec3d6a139ebaacd2b3 (patch) | |
tree | 488331115908d6afeefb1890c60865bf2dcc0fc3 /src | |
parent | a6a5f40650d43854b06aca1f228da99c1014c671 (diff) | |
parent | 882e76dbb14440b6d61f217682628a54f1071ebe (diff) |
Merge pull request #495 from grusuTagg/tma966-Moment-Thumbnail-Fixes
[TMA-966] Moment Thumbnail Not Showing Up After Upload (Video Only)
Diffstat (limited to 'src')
-rw-r--r-- | src/screens/profile/CaptionScreen.tsx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/screens/profile/CaptionScreen.tsx b/src/screens/profile/CaptionScreen.tsx index fac00f21..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 { @@ -121,7 +120,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! Check back in a bit and refresh to see it!', + ); + } else { + Alert.alert(''); + } }, 500); } }; @@ -173,7 +178,9 @@ const CaptionScreen: React.FC<CaptionScreenProps> = ({route, navigation}) => { return; } } - dispatch(loadUserMoments(userId)); + if (!isMediaAVideo) { + dispatch(loadUserMoments(userId)); + } if (profileCompletionStage) { dispatch(updateProfileCompletionStage(profileCompletionStage)); } |