Merge pull request from matrix-org/bwindels/stop-peeking-fix

Fix not stopping to peek when navigating away from peeked room
pull/21833/head
David Baker 2018-07-16 13:33:13 +01:00 committed by GitHub
commit 415eef5aec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions
src/components/structures

View File

@ -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});
}
},