diff options
author | Ivan Chen <ivan@tagg.id> | 2021-05-04 13:31:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-04 13:31:17 -0400 |
commit | 1441ef007549f24a292317f1e67c0de63cacbd2b (patch) | |
tree | 1b1fe4a21f257c468c321d49804f124c98a6e6b6 /src/components/messages/ChannelPreview.tsx | |
parent | 5a8d92bcd869ada1079bc36b6598c899a8a9246d (diff) | |
parent | 64dedc2bc0c65fae604ba771ae4c17d1927ff1c2 (diff) |
Merge pull request #392 from IvanIFChen/tma791-remove-profile-photo-requirement
[TMA-791] Removed profile photo requirement
Diffstat (limited to 'src/components/messages/ChannelPreview.tsx')
-rw-r--r-- | src/components/messages/ChannelPreview.tsx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/components/messages/ChannelPreview.tsx b/src/components/messages/ChannelPreview.tsx index 3d31d42a..878e5a6b 100644 --- a/src/components/messages/ChannelPreview.tsx +++ b/src/components/messages/ChannelPreview.tsx @@ -22,6 +22,7 @@ import { } from '../../types'; import {normalize, SCREEN_HEIGHT, SCREEN_WIDTH} from '../../utils'; import {getMember, isOnline} from '../../utils/messages'; +import {Avatar} from '../common'; const ChannelPreview: React.FC< ChannelPreviewMessengerProps< @@ -87,13 +88,9 @@ const ChannelPreview: React.FC< navigation.navigate('Chat'); }}> <View> - <Image + <Avatar style={styles.avatar} - source={ - member - ? {uri: member.user?.thumbnail_url} - : require('../../assets/images/avatar-placeholder.png') - } + uri={member?.user?.thumbnail_url as string} /> {online && <View style={styles.online} />} </View> |