mirror of https://github.com/vector-im/riot-web
Merge pull request #1108 from matrix-org/luke/fix-not-showing-next-room-on-reject
Correctly inspect state when rejecting invitepull/21833/head
commit
739a120cf0
|
@ -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 New Issue