Disable notiifcation sound by default

Fix applying notification sound toggle
This commit is contained in:
morethanwords 2021-03-22 16:37:45 +04:00
parent 1c3e59988e
commit b87ba82837
3 changed files with 7 additions and 5 deletions

View File

@ -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)))
.then((updSettings) => {
this.settings.nodesktop = updSettings[0];
@ -439,7 +439,7 @@ export class AppNotificationsManager {
public start() {
this.updateLocalSettings();
//rootScope.on('settings_changed', this.updateNotifySettings);
rootScope.on('settings_updated', this.updateLocalSettings);
//WebPushApiManager.start();
if(!this.notificationsUiSupport) {

View File

@ -114,7 +114,7 @@ export const STATE_INIT: State = {
slug: 'ByxGo2lrMFAIAAAAmkJxZabh8eM', // * new blurred camomile
},
notifications: {
sound: true
sound: false
}
},
drafts: {}

View File

@ -151,10 +151,12 @@ namespace I18n {
} else if(str._ === 'langPackString') {
out = str.value;
} else {
out = '[' + key + ']';
//out = '[' + key + ']';
out = key;
}
} else {
out = '[' + key + ']';
//out = '[' + key + ']';
out = key;
}
if(args?.length) {