Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 82b2da7

Browse files
author
Luke Barnard
committed
Correctly inspect state when rejecting invite
So that we view_next_room if we're looking at the room we're rejecting
1 parent 64b555d commit 82b2da7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/structures/MatrixChat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ module.exports = React.createClass({
383383

384384
MatrixClientPeg.get().leave(payload.room_id).done(() => {
385385
modal.close();
386-
if (this.currentRoomId === payload.room_id) {
386+
if (this.state.currentRoomId === payload.room_id) {
387387
dis.dispatch({action: 'view_next_room'});
388388
}
389389
}, (err) => {

0 commit comments

Comments
 (0)