Commit d0a2152d authored by Mark Harding's avatar Mark Harding

Merge branch 'avatar-image-can-be-null' into 'release/4.4.0'

Avatar image can be null

Closes #2477

See merge request !826
parents 88902bb8 77e36f40
......@@ -42,14 +42,16 @@ export default class ConversationView extends Component {
render() {
const item = this.props.item;
const avatarImg = {
uri:
MINDS_CDN_URI +
'icon/' +
item.participants[0].guid +
'/medium/' +
item.participants[0].icontime,
};
const avatarImg = item.participants[0]
? {
uri:
MINDS_CDN_URI +
'icon/' +
item.participants[0].guid +
'/medium/' +
item.participants[0].icontime,
}
: null;
const styles = this.props.styles;
let unread = item.unread ? (
<Icon
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment