diff --git a/src/lib/components/NotificationToast.svelte b/src/lib/components/NotificationToast.svelte index 0ea1cb756..0cd416d7e 100644 --- a/src/lib/components/NotificationToast.svelte +++ b/src/lib/components/NotificationToast.svelte @@ -1,4 +1,5 @@ diff --git a/src/lib/components/chat/Settings/Interface.svelte b/src/lib/components/chat/Settings/Interface.svelte index 02e87c251..8fe2e4dd6 100644 --- a/src/lib/components/chat/Settings/Interface.svelte +++ b/src/lib/components/chat/Settings/Interface.svelte @@ -32,6 +32,7 @@ let showUsername = false; let richTextInput = true; let largeTextAsFile = false; + let notificationSound = true; let landingPageMode = ''; let chatBubble = true; @@ -81,6 +82,11 @@ saveSettings({ showUpdateToast: showUpdateToast }); }; + const toggleNotificationSound = async () => { + notificationSound = !notificationSound; + saveSettings({ notificationSound: notificationSound }); + }; + const toggleShowChangelog = async () => { showChangelog = !showChangelog; saveSettings({ showChangelog: showChangelog }); @@ -216,6 +222,8 @@ chatDirection = $settings.chatDirection ?? 'LTR'; userLocation = $settings.userLocation ?? false; + notificationSound = $settings.notificationSound ?? true; + hapticFeedback = $settings.hapticFeedback ?? false; imageCompression = $settings.imageCompression ?? false; @@ -371,6 +379,28 @@ +
+
+
+ {$i18n.t('Notification Sound')} +
+ + +
+
+ {#if $user.role === 'admin'}