mirror of https://github.com/vector-im/riot-web
use room.getImplicitRoomName() from matthew/roomsettings2 branch of matrix-js-sdk for the placeholder roomname
parent
0cb6094992
commit
6351258b0e
|
@ -48,7 +48,7 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
name: name ? name.getContent().name : '',
|
name: name ? name.getContent().name : '',
|
||||||
initialName: name ? name.getContent().name : '',
|
implicitName: this.props.room.getImplicitRoomName(MatrixClientPeg.get().credentials.userId),
|
||||||
topic: topic ? topic.getContent().topic : '',
|
topic: topic ? topic.getContent().topic : '',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -121,7 +121,7 @@ module.exports = React.createClass({
|
||||||
// </div>
|
// </div>
|
||||||
// if (topic) topic_el = <div className="mx_RoomHeader_topic"><textarea>{ topic.getContent().topic }</textarea></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 =
|
name =
|
||||||
<div className="mx_RoomHeader_name">
|
<div className="mx_RoomHeader_name">
|
||||||
|
|
Loading…
Reference in New Issue