mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 03:36:07 +03:00
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:
parent
64b555dfe3
commit
82b2da7833
1 changed files with 1 additions and 1 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue