Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3232 from matrix-org/jryans/v1.4.0/enable-reactio…
Browse files Browse the repository at this point in the history
…ns-edits-default

Enable reactions and edits by default
  • Loading branch information
jryans authored Jul 17, 2019
2 parents 470f9b7 + 19b3b41 commit 88a0dbe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/settings/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 4 additions & 1 deletion src/settings/handlers/DeviceSettingsHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 88a0dbe

Please sign in to comment.