mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 13:14:58 +08:00
Only update component state when feature is enabled
This commit is contained in:
parent
07c2010cce
commit
fa6b33d629
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user