From 10cf362da52553e8187a5981bdf19da3f706ec31 Mon Sep 17 00:00:00 2001 From: Felix Krull Date: Tue, 6 Apr 2021 13:55:22 +0200 Subject: [PATCH] Fix viewing invitations when the inviter has no avatar set Signed-off-by: Felix Krull --- src/components/structures/GroupView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/GroupView.js b/src/components/structures/GroupView.js index b006b323fb..ed6167cbe7 100644 --- a/src/components/structures/GroupView.js +++ b/src/components/structures/GroupView.js @@ -981,7 +981,7 @@ export default class GroupView extends React.Component { ; } - const httpInviterAvatar = this.state.inviterProfile + const httpInviterAvatar = this.state.inviterProfile && this.state.inviterProfile.avatarUrl ? mediaFromMxc(this.state.inviterProfile.avatarUrl).getSquareThumbnailHttp(36) : null;