From 10b1b6443d10b32c5a6358ad6e5733dbf0b3895d Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 2 Mar 2016 10:59:54 +0000 Subject: [PATCH] Fix rooms we don't have any info about --- src/components/views/rooms/RoomHeader.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/views/rooms/RoomHeader.js b/src/components/views/rooms/RoomHeader.js index 1b3956c62d..e9dd878166 100644 --- a/src/components/views/rooms/RoomHeader.js +++ b/src/components/views/rooms/RoomHeader.js @@ -229,10 +229,10 @@ module.exports = React.createClass({ } } - var roomName; + var roomName = 'Join Room'; if (this.props.oobData && this.props.oobData.name) { roomName = this.props.oobData.name; - } else { + } else if (this.props.room) { this.props.room.name; } @@ -278,7 +278,7 @@ module.exports = React.createClass({ ); } - else { + else if (this.props.room || (this.props.oobData && this.props.oobData.name)) { roomAvatar = (