Disable notiifcation sound by default
Fix applying notification sound toggle
This commit is contained in:
parent
32beded1b5
commit
8bf4d9c42b
@ -261,7 +261,7 @@ export class AppNotificationsManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public updateLocalSettings() {
|
public updateLocalSettings = () => {
|
||||||
Promise.all(['notify_nodesktop', 'notify_volume', 'notify_novibrate', 'notify_nopreview', 'notify_nopush'].map(k => sessionStorage.get(k as any)))
|
Promise.all(['notify_nodesktop', 'notify_volume', 'notify_novibrate', 'notify_nopreview', 'notify_nopush'].map(k => sessionStorage.get(k as any)))
|
||||||
.then((updSettings) => {
|
.then((updSettings) => {
|
||||||
this.settings.nodesktop = updSettings[0];
|
this.settings.nodesktop = updSettings[0];
|
||||||
@ -439,7 +439,7 @@ export class AppNotificationsManager {
|
|||||||
|
|
||||||
public start() {
|
public start() {
|
||||||
this.updateLocalSettings();
|
this.updateLocalSettings();
|
||||||
//rootScope.on('settings_changed', this.updateNotifySettings);
|
rootScope.on('settings_updated', this.updateLocalSettings);
|
||||||
//WebPushApiManager.start();
|
//WebPushApiManager.start();
|
||||||
|
|
||||||
if(!this.notificationsUiSupport) {
|
if(!this.notificationsUiSupport) {
|
||||||
|
@ -114,7 +114,7 @@ export const STATE_INIT: State = {
|
|||||||
slug: 'ByxGo2lrMFAIAAAAmkJxZabh8eM', // * new blurred camomile
|
slug: 'ByxGo2lrMFAIAAAAmkJxZabh8eM', // * new blurred camomile
|
||||||
},
|
},
|
||||||
notifications: {
|
notifications: {
|
||||||
sound: true
|
sound: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
drafts: {}
|
drafts: {}
|
||||||
|
@ -151,10 +151,12 @@ namespace I18n {
|
|||||||
} else if(str._ === 'langPackString') {
|
} else if(str._ === 'langPackString') {
|
||||||
out = str.value;
|
out = str.value;
|
||||||
} else {
|
} else {
|
||||||
out = '[' + key + ']';
|
//out = '[' + key + ']';
|
||||||
|
out = key;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
out = '[' + key + ']';
|
//out = '[' + key + ']';
|
||||||
|
out = key;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(args?.length) {
|
if(args?.length) {
|
||||||
|
Loading…
Reference in New Issue
Block a user