Fix GroupAvatar crash

When we don't have an avatar we shouldn't explode.
This commit is contained in:
Travis Ralston 2021-03-08 17:03:29 -07:00
parent 2a40bc87cc
commit 4688c887c4

View file

@ -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,