use room.getImplicitRoomName() from matthew/roomsettings2 branch of matrix-js-sdk for the placeholder roomname

This commit is contained in:
Matthew Hodgson 2016-01-10 20:01:30 +00:00
parent 0cb6094992
commit 6351258b0e

View file

@ -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({
// </div>
// if (topic) topic_el = <div className="mx_RoomHeader_topic"><textarea>{ topic.getContent().topic }</textarea></div>
var placeholderName = this.state.initialName ? "Unnamed Room" : this.props.room.name;
var placeholderName = this.state.implicitName || "Unnamed Room";
name =
<div className="mx_RoomHeader_name">