mirror of https://github.com/vector-im/riot-web
Guard onStatusBarVisible/Hidden with this.unmounted
parent
f06de1f129
commit
9c99dafba5
|
@ -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 New Issue