Correctly inspect state when rejecting invite
So that we view_next_room if we're looking at the room we're rejecting
This commit is contained in:
@@ -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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user