diff --git a/src/components/structures/GroupView.js b/src/components/structures/GroupView.js index a946d16319..2e2fa25169 100644 --- a/src/components/structures/GroupView.js +++ b/src/components/structures/GroupView.js @@ -1003,9 +1003,10 @@ export default createReactClass({ this.state.inviterProfile.avatarUrl, 36, 36, ) : null; - let inviterName = group.inviter.userId; + const inviter = group.inviter || {}; + let inviterName = inviter.userId; if (this.state.inviterProfile) { - inviterName = this.state.inviterProfile.displayName || group.inviter.userId; + inviterName = this.state.inviterProfile.displayName || inviter.userId; } return