Fix offline indicator (#268)
This commit is contained in:
parent
1115d882ca
commit
75dc27dd92
1 changed files with 10 additions and 10 deletions
|
|
@ -71,16 +71,14 @@ export default class ProfilePicture extends React.PureComponent {
|
|||
pictureUrl = Client.getProfilePictureUrl(this.props.user.id, this.props.user.last_picture_update);
|
||||
}
|
||||
|
||||
let status;
|
||||
let statusIcon;
|
||||
if (this.props.status && statusToIcon[this.props.status]) {
|
||||
status = (
|
||||
<View style={[style.statusContainer, style[this.props.status]]}>
|
||||
<Icon
|
||||
style={style.status}
|
||||
name={statusToIcon[this.props.status]}
|
||||
size={8}
|
||||
/>
|
||||
</View>
|
||||
statusIcon = (
|
||||
<Icon
|
||||
style={style.status}
|
||||
name={statusToIcon[this.props.status]}
|
||||
size={8}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -91,7 +89,9 @@ export default class ProfilePicture extends React.PureComponent {
|
|||
source={{uri: pictureUrl}}
|
||||
defaultSource={placeholder}
|
||||
/>
|
||||
{status}
|
||||
<View style={[style.statusContainer, style[this.props.status]]}>
|
||||
{statusIcon}
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue