From ef3df3e3fafe2397b2157b081f80eda8f4d8896a Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 12 Oct 2017 17:28:14 +0100 Subject: [PATCH] comment --- src/UserSettingsStore.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/UserSettingsStore.js b/src/UserSettingsStore.js index 02b9b649b5..0e9d58b270 100644 --- a/src/UserSettingsStore.js +++ b/src/UserSettingsStore.js @@ -204,6 +204,8 @@ export default { return false; } else if (sdkConfigValue === 'labs') { if (!MatrixClientPeg.get().isGuest()) { + // Make it explicit that guests get the defaults (although they shouldn't + // have been able to ever toggle the flags anyway) const userValue = localStorage.getItem(`mx_labs_feature_${featureId}`); if (userValue !== null) { return userValue === 'true';