Change setting style

This commit is contained in:
J. Ryan Stinnett 2019-05-17 17:43:08 +01:00
parent 3a405701a3
commit 45cdf880b1
5 changed files with 9 additions and 9 deletions

View file

@ -249,7 +249,7 @@ module.exports = React.createClass({
return false; // ignored = no show (only happens if the ignore happens after an event was received)
}
if (SettingsStore.isFeatureEnabled("showHiddenEventsInTimeline")) {
if (SettingsStore.getValue("showHiddenEventsInTimeline")) {
return true;
}

View file

@ -521,7 +521,7 @@ module.exports = withMatrixClient(React.createClass({
);
let tileHandler = getHandlerTile(this.props.mxEvent);
if (!tileHandler && SettingsStore.isFeatureEnabled("showHiddenEventsInTimeline")) {
if (!tileHandler && SettingsStore.getValue("showHiddenEventsInTimeline")) {
tileHandler = "messages.ViewSourceEvent";
}
// This shouldn't happen: the caller should check we support this type

View file

@ -52,6 +52,7 @@ export default class LabsUserSettingsTab extends React.Component {
<div className="mx_SettingsTab_section">
{flags}
<SettingsFlag name={"enableWidgetScreenshots"} level={SettingLevel.ACCOUNT} />
<SettingsFlag name={"showHiddenEventsInTimeline"} level={SettingLevel.DEVICE} />
</div>
</div>
);