1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2026-01-03 21:42:32 +03:00

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,