mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
Merge pull request #3229 from matrix-org/jryans/enable-reactions-edits-default
Enable reactions and edits by default
This commit is contained in:
commit
b8aae63c83
2 changed files with 6 additions and 3 deletions
|
@ -118,13 +118,13 @@ export const SETTINGS = {
|
|||
isFeature: true,
|
||||
displayName: _td("Edit messages after they have been sent (refresh to apply changes)"),
|
||||
supportedLevels: LEVELS_FEATURE,
|
||||
default: false,
|
||||
default: true,
|
||||
},
|
||||
"feature_reactions": {
|
||||
isFeature: true,
|
||||
displayName: _td("React to messages with emoji (refresh to apply changes)"),
|
||||
supportedLevels: LEVELS_FEATURE,
|
||||
default: false,
|
||||
default: true,
|
||||
},
|
||||
"MessageComposerInput.suggestEmoji": {
|
||||
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
|
||||
|
|
|
@ -122,7 +122,10 @@ export default class DeviceSettingsHandler extends SettingsHandler {
|
|||
}
|
||||
|
||||
const value = localStorage.getItem("mx_labs_feature_" + featureName);
|
||||
return value === "true";
|
||||
if (value === "true") return true;
|
||||
if (value === "false") return false;
|
||||
// Try to read the next config level for the feature.
|
||||
return null;
|
||||
}
|
||||
|
||||
_writeFeature(featureName, enabled) {
|
||||
|
|
Loading…
Reference in a new issue