From fa6b33d629752f566d4ffaf2e552a6193c9a1bca Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Thu, 10 Jan 2019 16:54:08 +0000 Subject: [PATCH] Only update component state when feature is enabled --- src/components/views/rooms/AuxPanel.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/views/rooms/AuxPanel.js b/src/components/views/rooms/AuxPanel.js index 48317411c9..5370b4d8b5 100644 --- a/src/components/views/rooms/AuxPanel.js +++ b/src/components/views/rooms/AuxPanel.js @@ -101,7 +101,9 @@ module.exports = React.createClass({ }, _rateLimitedUpdate: new RateLimitedFunc(function() { - this.setState({counters: this._computeCounters()}) + if (SettingsStore.isFeatureEnabled("feature_state_counters")) { + this.setState({counters: this._computeCounters()}); + } }, 500), _computeCounters: function() {