Fix GroupAvatar crash
When we don't have an avatar we shouldn't explode.
This commit is contained in:
parent
2a40bc87cc
commit
4688c887c4
1 changed files with 1 additions and 0 deletions
|
@ -39,6 +39,7 @@ export default class GroupAvatar extends React.Component<IProps> {
|
|||
};
|
||||
|
||||
getGroupAvatarUrl() {
|
||||
if (!this.props.groupAvatarUrl) return null;
|
||||
return mediaFromMxc(this.props.groupAvatarUrl).getThumbnailOfSourceHttp(
|
||||
this.props.width,
|
||||
this.props.height,
|
||||
|
|
Loading…
Reference in a new issue