From 807f01b57ede9fa36ea6701ce44be922ab7cd79e Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Fri, 16 Jun 2017 11:10:55 +0100 Subject: [PATCH 1/2] Make sure to pass the roomAlias to the preview header if we have it --- src/components/structures/RoomView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index c1f59c8e28..481c78a0a9 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -1463,7 +1463,7 @@ module.exports = React.createClass({ // We have no room object for this room, only the ID. // We've got to this room by following a link, possibly a third party invite. - var room_alias = this.state.room_alias; + const roomAlias = this.state.roomAlias; return (
Date: Fri, 16 Jun 2017 11:27:47 +0100 Subject: [PATCH 2/2] Correctly inspect state when rejecting invite So that we view_next_room if we're looking at the room we're rejecting --- src/components/structures/MatrixChat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index efca22cc85..ab937c07ac 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -383,7 +383,7 @@ module.exports = React.createClass({ MatrixClientPeg.get().leave(payload.room_id).done(() => { modal.close(); - if (this.currentRoomId === payload.room_id) { + if (this.state.currentRoomId === payload.room_id) { dis.dispatch({action: 'view_next_room'}); } }, (err) => {