1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-17 17:42:41 +03:00

SecurityUserSettingsTab: Put the event index settings behind the feature flag.

This commit is contained in:
Damir Jelić
2020-01-23 13:33:09 +01:00
parent 947ea9823d
commit 4aa0658ac8

View File

@@ -254,12 +254,15 @@ export default class SecurityUserSettingsTab extends React.Component {
</div>
);
const eventIndex = (
<div className="mx_SettingsTab_section">
<span className="mx_SettingsTab_subheading">{_t("Message search")}</span>
<EventIndexPanel />
</div>
);
let eventIndex;
if (SettingsStore.isFeatureEnabled("feature_event_indexing")) {
eventIndex = (
<div className="mx_SettingsTab_section">
<span className="mx_SettingsTab_subheading">{_t("Message search")}</span>
<EventIndexPanel />
</div>
);
}
// XXX: There's no such panel in the current cross-signing designs, but
// it's useful to have for testing the feature. If there's no interest