Merge pull request #1108 from matrix-org/luke/fix-not-showing-next-room-on-reject

Correctly inspect state when rejecting invite
This commit is contained in:
David Baker
2017-06-16 11:34:10 +01:00
committed by GitHub
+1 -1
View File
@@ -383,7 +383,7 @@ module.exports = React.createClass({
MatrixClientPeg.get().leave(payload.room_id).done(() => { MatrixClientPeg.get().leave(payload.room_id).done(() => {
modal.close(); modal.close();
if (this.currentRoomId === payload.room_id) { if (this.state.currentRoomId === payload.room_id) {
dis.dispatch({action: 'view_next_room'}); dis.dispatch({action: 'view_next_room'});
} }
}, (err) => { }, (err) => {