comment
This commit is contained in:
parent
20f9d71782
commit
ef3df3e3fa
1 changed files with 2 additions and 0 deletions
|
@ -204,6 +204,8 @@ export default {
|
||||||
return false;
|
return false;
|
||||||
} else if (sdkConfigValue === 'labs') {
|
} else if (sdkConfigValue === 'labs') {
|
||||||
if (!MatrixClientPeg.get().isGuest()) {
|
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}`);
|
const userValue = localStorage.getItem(`mx_labs_feature_${featureId}`);
|
||||||
if (userValue !== null) {
|
if (userValue !== null) {
|
||||||
return userValue === 'true';
|
return userValue === 'true';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue