Allow Message formatting to be turned off when experiments are disabled
Fix: #549
This commit is contained in:
parent
daa0e65070
commit
b282ace9c3
|
@ -95,10 +95,16 @@ class Settings extends ChangeNotifier {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// If message formatting has not explicitly been turned off, then
|
// allow message formatting to be turned off even when experiments are
|
||||||
// turn it on by default.
|
// disabled...
|
||||||
if (experiment == FormattingExperiment) {
|
if (experiment == FormattingExperiment) {
|
||||||
return true;
|
if (this.experiments.containsKey(FormattingExperiment)) {
|
||||||
|
// If message formatting has not explicitly been turned off, then
|
||||||
|
// turn it on by default (even when experiments are disabled)
|
||||||
|
return this.experiments[experiment]! == true;
|
||||||
|
} else {
|
||||||
|
return true; // enable by default
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue