1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-22 04:02:40 +03:00

Add feature flag for counters

This commit is contained in:
Erik Johnston
2018-12-24 15:09:10 +00:00
committed by Erik Johnston
parent 712241d710
commit 4c204e88be
3 changed files with 10 additions and 2 deletions

View File

@@ -25,6 +25,7 @@ import AppsDrawer from './AppsDrawer';
import { _t } from '../../../languageHandler';
import classNames from 'classnames';
import RateLimitedFunc from '../../../ratelimitedfunc';
import SettingsStore from "../../../settings/SettingsStore";
module.exports = React.createClass({
@@ -164,7 +165,7 @@ module.exports = React.createClass({
/>;
let stateViews = null;
if (this.props.room) {
if (this.props.room && SettingsStore.isFeatureEnabled("feature_state_counters")) {
const stateEvs = this.props.room.currentState.getStateEvents('re.jki.counter');
let counters = [];