fix for missing default logo in android

This commit is contained in:
Roland Osborne 2022-12-21 10:59:23 -08:00
parent 5fa4729251
commit 4bda553e32

View File

@ -134,10 +134,10 @@ export function TopicItem({ item, focused, focus, hosting, sealed, sealKey, remo
<View style={styles.wrapper}> <View style={styles.wrapper}>
<TouchableOpacity activeOpacity={1} style={styles.item} onPress={focus}> <TouchableOpacity activeOpacity={1} style={styles.item} onPress={focus}>
<View style={styles.header}> <View style={styles.header}>
{ state.logo && ( { state.logo !== 'avatar' && state.logo && (
<Image source={{ uri: state.logo }} style={{ width: 28, height: 28, borderRadius: 6 }} /> <Image source={{ uri: state.logo }} style={{ width: 28, height: 28, borderRadius: 6 }} />
)} )}
{ !state.logo && ( { (state.logo === 'avatar' || !state.logo) && (
<Image source={avatar} style={{ width: 28, height: 28, borderRadius: 6 }} /> <Image source={avatar} style={{ width: 28, height: 28, borderRadius: 6 }} />
)} )}
<Text style={{ ...styles.name, color: state.nameSet ? Colors.text : Colors.grey }}>{ state.name }</Text> <Text style={{ ...styles.name, color: state.nameSet ? Colors.text : Colors.grey }}>{ state.name }</Text>