element-web/src/settings
Paulo Pinto 1b334e47aa
Fix issue that caused the value of certain settings to be inverted (#6896)
When using the SettingsStore.watchSetting() method for settings which have an
invertedSettingName, the newValueAt argument passed to the callback function,
would erroneously contain the inverted value.

This was making it so that such settings appeared to be disabled when they
should in fact be enabled, or vice-versa. This was however only the case for
code which took in account the newValueAt argument. Code using the newValue
argument was not affected.

The settings which have an invertedSettingName, and were thus potentially
impacted are:

- MessageComposerInput.dontSuggestEmoji
- hideRedactions
- hideJoinLeaves
- hideAvatarChanges
- hideDisplaynameChanges
- hideReadReceipts
- Pill.shouldHidePillAvatar
- TextualBody.disableBigEmoji
- dontSendTypingNotifications
- TagPanel.disableTagPanel
- webRtcForceTURN

Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com>
2021-10-07 16:42:23 +02:00
..
controllers Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/fix/18088 2021-09-06 11:41:09 +01:00
handlers Add missing space 2021-09-02 17:39:13 +02:00
watchers Globally replace all console.logs via codemod (#6827) 2021-09-21 09:48:09 -06:00
Layout.ts Add new layout switcher UI 2021-06-17 14:11:44 +01:00
SettingLevel.ts Move SettingLevel to its own file 2020-07-28 11:37:59 -06:00
Settings.tsx Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/fix/18088 2021-09-10 09:53:04 +01:00
SettingsStore.ts Fix issue that caused the value of certain settings to be inverted (#6896) 2021-10-07 16:42:23 +02:00
UIFeature.ts Add a UI Feature flag for room history settings 2020-10-28 09:00:36 -06:00
WatchManager.ts Fix watching settings 2021-06-05 01:16:52 -04:00