Skip to content

Commit

Permalink
chore: update video message indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
bang9 committed Aug 31, 2022
1 parent 15713e5 commit 70da6f1
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,14 @@ const VideoFileMessage = ({ message }: FileMessageProps) => {
});
}, []);

if (state.loading) {
if (state.loading || state.imageNotFound) {
return (
<View style={[style, styles.container]}>
<PlayIcon />
</View>
);
}

if (state.imageNotFound) {
return <Icon containerStyle={style} icon={'thumbnail-none'} size={48} color={colors.onBackground02} />;
}

return (
<View style={styles.container}>
<Image
Expand Down

0 comments on commit 70da6f1

Please sign in to comment.