From 6351258b0e6d5677f2a84460af0d6533bf401bb4 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sun, 10 Jan 2016 20:01:30 +0000 Subject: [PATCH] use room.getImplicitRoomName() from matthew/roomsettings2 branch of matrix-js-sdk for the placeholder roomname --- src/components/views/rooms/RoomHeader.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 =