Bugfix & clearer setting name

pull/21833/head
David Baker 2019-11-20 16:12:14 +00:00
parent 518130c912
commit e36f4375b0
3 changed files with 3 additions and 3 deletions

View File

@ -363,7 +363,7 @@
"Automatically replace plain text Emoji": "Automatically replace plain text Emoji",
"Mirror local video feed": "Mirror local video feed",
"Enable Community Filter Panel": "Enable Community Filter Panel",
"Match system theme": "Match system theme",
"Match system dark mode setting": "Match system dark mode setting",
"Allow Peer-to-Peer for 1:1 calls": "Allow Peer-to-Peer for 1:1 calls",
"Send analytics data": "Send analytics data",
"Never send encrypted messages to unverified devices from this device": "Never send encrypted messages to unverified devices from this device",

View File

@ -278,7 +278,7 @@ export const SETTINGS = {
"use_system_theme": {
supportedLevels: LEVELS_DEVICE_ONLY_SETTINGS,
default: true,
displayName: _td("Match system theme"),
displayName: _td("Match system dark mode setting"),
},
"webRtcAllowPeerToPeer": {
supportedLevels: LEVELS_DEVICE_ONLY_SETTINGS_WITH_CONFIG,

View File

@ -84,7 +84,7 @@ export class ThemeWatcher {
}
isSystemThemeSupported() {
return this._preferDark || this._preferLight;
return this._preferDark.matches || this._preferLight.matches;
}
}