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 = (