mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-17 02:11:31 +02:00
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
@ -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…
x
Reference in New Issue
Block a user