diff --git a/src/app/components/Alerts.svelte b/src/app/components/Alerts.svelte index 3693e25..c7c4f06 100644 --- a/src/app/components/Alerts.svelte +++ b/src/app/components/Alerts.svelte @@ -16,8 +16,7 @@ deriveAlertStatus, userInboxRelays, getAlertFeed, - showUnreadBadge, - playAlertSound, + userSettingsValues, } from "@app/core/state" import {deleteAlert, createDmAlert} from "@app/core/commands" import {clearBadges} from "../util/notifications" @@ -74,15 +73,15 @@ } const onShowBadgeOnUnreadToggle = async () => { - $showUnreadBadge = !$showUnreadBadge + $userSettingsValues.show_notifications_badge = !$userSettingsValues.show_notifications_badge - if (!$showUnreadBadge) { + if (!$userSettingsValues.show_notifications_badge) { await clearBadges() } } const onDirectMessagesNotificationSoundToggle = async () => { - $playAlertSound = !$playAlertSound + $userSettingsValues.play_notification_sound = !$userSettingsValues.play_notification_sound } let directMessagesNotificationToggle: HTMLInputElement @@ -123,7 +122,7 @@