mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-20 02:08:57 +00:00
Use toLowerCase for config values
Co-authored-by: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com>
This commit is contained in:
@@ -132,7 +132,7 @@ export const _refreshRemoteConfig = async (
|
|||||||
const oldConfig = config;
|
const oldConfig = config;
|
||||||
config = Array.from(newConfigValues.entries()).reduce(
|
config = Array.from(newConfigValues.entries()).reduce(
|
||||||
(acc, [name, value]) => {
|
(acc, [name, value]) => {
|
||||||
const enabled = value !== undefined && value !== 'false';
|
const enabled = value !== undefined && value.toLowerCase() !== 'false';
|
||||||
const previouslyEnabled: boolean = get(
|
const previouslyEnabled: boolean = get(
|
||||||
oldConfig,
|
oldConfig,
|
||||||
[name, 'enabled'],
|
[name, 'enabled'],
|
||||||
|
|||||||
Reference in New Issue
Block a user