mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 15:08:24 +00:00
Fix GroupAvatar crash
When we don't have an avatar we shouldn't explode.
This commit is contained in:
@@ -39,6 +39,7 @@ export default class GroupAvatar extends React.Component<IProps> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
getGroupAvatarUrl() {
|
getGroupAvatarUrl() {
|
||||||
|
if (!this.props.groupAvatarUrl) return null;
|
||||||
return mediaFromMxc(this.props.groupAvatarUrl).getThumbnailOfSourceHttp(
|
return mediaFromMxc(this.props.groupAvatarUrl).getThumbnailOfSourceHttp(
|
||||||
this.props.width,
|
this.props.width,
|
||||||
this.props.height,
|
this.props.height,
|
||||||
|
|||||||
Reference in New Issue
Block a user