Merge pull request #656 from matrix-org/luke/fix-setState-warnings-from-RoomView
Guard onStatusBarVisible/Hidden with this.unmounted
This commit is contained in:
commit
853d94e2d4
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue