default to false for webpush notifications and translations for the button

This commit is contained in:
simosmik
2026-03-03 13:30:19 +00:00
parent 909ff05118
commit 5d55e65727
6 changed files with 40 additions and 20 deletions

View File

@@ -381,7 +381,7 @@ const credentialsDb = {
const DEFAULT_NOTIFICATION_PREFERENCES = {
channels: {
inApp: false,
webPush: true
webPush: false
},
events: {
actionRequired: true,
@@ -396,7 +396,7 @@ const normalizeNotificationPreferences = (value) => {
return {
channels: {
inApp: source.channels?.inApp === true,
webPush: source.channels?.webPush !== false
webPush: source.channels?.webPush === true
},
events: {
actionRequired: source.events?.actionRequired !== false,