diff --git a/src/components/views/rooms/RoomHeader.js b/src/components/views/rooms/RoomHeader.js index 77ab01afb1..719695bc36 100644 --- a/src/components/views/rooms/RoomHeader.js +++ b/src/components/views/rooms/RoomHeader.js @@ -48,7 +48,7 @@ module.exports = React.createClass({ this.setState({ name: name ? name.getContent().name : '', - initialName: name ? name.getContent().name : '', + implicitName: this.props.room.getImplicitRoomName(MatrixClientPeg.get().credentials.userId), topic: topic ? topic.getContent().topic : '', }); } @@ -121,7 +121,7 @@ module.exports = React.createClass({ // // if (topic) topic_el =
- var placeholderName = this.state.initialName ? "Unnamed Room" : this.props.room.name; + var placeholderName = this.state.implicitName || "Unnamed Room"; name =