From ec5ca1ca286373acf7859dde35d8284e715887fb Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Wed, 13 Apr 2016 12:26:40 +0100 Subject: [PATCH] s/roomAlias/roomAddress/ to reduce confusion --- src/components/structures/MatrixChat.js | 2 +- src/components/structures/RoomView.js | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index b1202b1c08..cd4a2df074 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -1055,7 +1055,7 @@ module.exports = React.createClass({ page_element = ( { + MatrixClientPeg.get().peekInRoom(this.props.roomAddress).then((room) => { this.setState({ room: room, roomLoading: false, @@ -258,7 +258,7 @@ module.exports = React.createClass({ }, componentWillReceiveProps: function(newProps) { - if (newProps.roomAlias != this.props.roomAlias) { + if (newProps.roomAddress != this.props.roomAddress) { throw new Error("changing room on a RoomView is not supported"); } @@ -554,7 +554,7 @@ module.exports = React.createClass({ display_name_promise.then(() => { var sign_url = this.props.thirdPartyInvite ? this.props.thirdPartyInvite.inviteSignUrl : undefined; - return MatrixClientPeg.get().joinRoom(this.props.roomAlias, + return MatrixClientPeg.get().joinRoom(this.props.roomAddress, { inviteSignUrl: sign_url } ) }).then(function(resp) { var roomId = resp.roomId; @@ -930,7 +930,7 @@ module.exports = React.createClass({ this.setState({ rejecting: true }); - MatrixClientPeg.get().leave(this.props.roomAlias).done(function() { + MatrixClientPeg.get().leave(this.props.roomAddress).done(function() { dis.dispatch({ action: 'view_next_room' }); self.setState({ rejecting: false