From 9c99dafba5916bba9e8020517f690c4a98c54325 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Thu, 26 Jan 2017 17:03:01 +0000 Subject: [PATCH] Guard onStatusBarVisible/Hidden with this.unmounted --- src/components/structures/RoomView.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index 24c8ff53c0..eeb852a87f 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -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, });