1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-05 23:10:41 +03:00

Add SettingsLevel enum; Move settings to own file.

Signed-off-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
Travis Ralston
2017-11-03 23:19:45 -06:00
parent 893c39bfbe
commit 8282534f87
16 changed files with 259 additions and 213 deletions

View File

@@ -48,10 +48,12 @@ export default {
// TODO
},
// TODO: {Travis} Granular setting
getEnableNotifications: function() {
return Notifier.isEnabled();
},
// TODO: {Travis} Granular setting
setEnableNotifications: function(enable) {
if (!Notifier.supportsDesktopNotifications()) {
return;
@@ -59,10 +61,12 @@ export default {
Notifier.setEnabled(enable);
},
// TODO: {Travis} Granular setting
getEnableNotificationBody: function() {
return Notifier.isBodyEnabled();
},
// TODO: {Travis} Granular setting
setEnableNotificationBody: function(enable) {
if (!Notifier.supportsDesktopNotifications()) {
return;
@@ -70,10 +74,12 @@ export default {
Notifier.setBodyEnabled(enable);
},
// TODO: {Travis} Granular setting
getEnableAudioNotifications: function() {
return Notifier.isAudioEnabled();
},
// TODO: {Travis} Granular setting
setEnableAudioNotifications: function(enable) {
Notifier.setAudioEnabled(enable);
},