Merge pull request #656 from matrix-org/luke/fix-setState-warnings-from-RoomView

Guard onStatusBarVisible/Hidden with this.unmounted
This commit is contained in:
David Baker 2017-01-26 18:06:41 +00:00 committed by GitHub
commit 853d94e2d4

View file

@ -1332,12 +1332,14 @@ module.exports = React.createClass({
},
onStatusBarVisible: function() {
if (this.unmounted) return;
this.setState({
statusBarVisible: true,
});
},
onStatusBarHidden: function() {
if (this.unmounted) return;
this.setState({
statusBarVisible: false,
});