You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-22 04:02:40 +03:00
Only update component state when feature is enabled
This commit is contained in:
@@ -101,7 +101,9 @@ module.exports = React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
_rateLimitedUpdate: new RateLimitedFunc(function() {
|
_rateLimitedUpdate: new RateLimitedFunc(function() {
|
||||||
this.setState({counters: this._computeCounters()})
|
if (SettingsStore.isFeatureEnabled("feature_state_counters")) {
|
||||||
|
this.setState({counters: this._computeCounters()});
|
||||||
|
}
|
||||||
}, 500),
|
}, 500),
|
||||||
|
|
||||||
_computeCounters: function() {
|
_computeCounters: function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user