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

Commit

Permalink
Merge pull request #2055 from matrix-org/bwindels/stop-peeking-fix
Browse files Browse the repository at this point in the history
Fix not stopping to peek when navigating away from peeked room
  • Loading branch information
dbkr committed Jul 16, 2018
2 parents ac1f130 + b412b9e commit 415eef5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/structures/RoomView.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,11 +299,11 @@ module.exports = React.createClass({
throw err;
}
});
} else if (room) {
// Stop peeking because we have joined this room previously
MatrixClientPeg.get().stopPeeking();
this.setState({isPeeking: false});
}
} else if (room) {
// Stop peeking because we have joined this room previously
MatrixClientPeg.get().stopPeeking();
this.setState({isPeeking: false});
}
},

Expand Down

0 comments on commit 415eef5

Please sign in to comment.