Merge pull request #3229 from matrix-org/jryans/enable-reactions-edits-default

Enable reactions and edits by default
This commit is contained in:
J. Ryan Stinnett 2019-07-17 15:20:07 +01:00 committed by GitHub
commit b8aae63c83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View file

@ -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,

View file

@ -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) {