From 3659115921ade127e46bf9a5f5b5abdd1147dc0e Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 17 Aug 2020 13:37:16 -0600 Subject: [PATCH] Followup on some SettingsStore removals --- src/components/views/dialogs/UserSettingsDialog.js | 2 +- src/rageshake/submit-rageshake.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/dialogs/UserSettingsDialog.js b/src/components/views/dialogs/UserSettingsDialog.js index 820de713c1..ffde03fe31 100644 --- a/src/components/views/dialogs/UserSettingsDialog.js +++ b/src/components/views/dialogs/UserSettingsDialog.js @@ -116,7 +116,7 @@ export default class UserSettingsDialog extends React.Component { "mx_UserSettingsDialog_securityIcon", , )); - if (SdkConfig.get()['showLabsSettings'] || SettingsStore.getLabsFeatures().length > 0) { + if (SdkConfig.get()['showLabsSettings']) { tabs.push(new Tab( USER_LABS_TAB, _td("Labs"), diff --git a/src/rageshake/submit-rageshake.ts b/src/rageshake/submit-rageshake.ts index 80034691c8..1dcf929e86 100644 --- a/src/rageshake/submit-rageshake.ts +++ b/src/rageshake/submit-rageshake.ts @@ -143,7 +143,7 @@ export default async function sendBugReport(bugReportEndpoint: string, opts: IOp } // add labs options - const enabledLabs = SettingsStore.getLabsFeatures().filter(f => SettingsStore.getValue(f)); + const enabledLabs = SettingsStore.getFeatureSettingNames().filter(f => SettingsStore.getValue(f)); if (enabledLabs.length) { body.append('enabled_labs', enabledLabs.join(', ')); }