From 03b10e7226e819ba869b622a08601e7243f4981d Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 12 May 2020 15:21:44 +0100 Subject: [PATCH] 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. --- src/components/views/rooms/RoomPreviewBar.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/views/rooms/RoomPreviewBar.js b/src/components/views/rooms/RoomPreviewBar.js index 85c41f30ec..fe7c57d811 100644 --- a/src/components/views/rooms/RoomPreviewBar.js +++ b/src/components/views/rooms/RoomPreviewBar.js @@ -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, } }; },