Fix sign in / up links on previewed rooms

They errored because the out-of-band data was assumed to be non-null,
but that's only present for 3rd party invites.
This commit is contained in:
David Baker 2020-05-12 15:21:44 +01:00
parent 8b8eb7d3c0
commit 03b10e7226

View file

@ -266,9 +266,9 @@ export default createReactClass({
params: {
email: this.props.invitedEmail,
signurl: this.props.signUrl,
room_name: this.props.oobData.room_name,
room_avatar_url: this.props.oobData.avatarUrl,
inviter_name: this.props.oobData.inviterName,
room_name: this.props.oobData ? this.props.oobData.room_name : null,
room_avatar_url: this.props.oobData ? this.props.oobData.avatarUrl : null,
inviter_name: this.props.oobData ? this.props.oobData.inviterName : null,
}
};
},