You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
s/getImplicitRoomName/getDefaultRoomName/ # as kegan doesn't like the word 'implicit'
This commit is contained in:
@@ -54,7 +54,7 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
name: name ? name.getContent().name : '',
|
name: name ? name.getContent().name : '',
|
||||||
implicitName: this.props.room.getImplicitRoomName(MatrixClientPeg.get().credentials.userId),
|
defaultName: this.props.room.getDefaultRoomName(MatrixClientPeg.get().credentials.userId),
|
||||||
topic: topic ? topic.getContent().topic : '',
|
topic: topic ? topic.getContent().topic : '',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -134,8 +134,8 @@ module.exports = React.createClass({
|
|||||||
// 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 = "Unnamed Room";
|
var placeholderName = "Unnamed Room";
|
||||||
if (this.state.implicitName && this.state.implicitName !== '?') {
|
if (this.state.defaultName && this.state.defaultName !== '?') {
|
||||||
placeholderName += " (" + this.state.implicitName + ")";
|
placeholderName += " (" + this.state.defaultName + ")";
|
||||||
}
|
}
|
||||||
|
|
||||||
name =
|
name =
|
||||||
|
|||||||
Reference in New Issue
Block a user