mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-11 15:16:35 +02:00
use room.getImplicitRoomName() from matthew/roomsettings2 branch of matrix-js-sdk for the placeholder roomname
This commit is contained in:
parent
0cb6094992
commit
6351258b0e
@ -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">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user