about summary refs log tree commit diff
path: root/src/state/queries/notifications/settings.ts
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-06-20 22:44:53 +0300
committerGitHub <noreply@github.com>2025-06-20 22:44:53 +0300
commit25baf1f6612103a9e777dc7175a9057ce3c399ae (patch)
tree06a3ff7c106de42a61d5b80e68a0fd875cb2d4b2 /src/state/queries/notifications/settings.ts
parentdcbcd1bb80b7f0c45cea93ed9c10d2b33ac2f0fa (diff)
downloadvoidsky-25baf1f6612103a9e777dc7175a9057ce3c399ae.tar.zst
Allow disabling replies (#8537)
Diffstat (limited to 'src/state/queries/notifications/settings.ts')
-rw-r--r--src/state/queries/notifications/settings.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/state/queries/notifications/settings.ts b/src/state/queries/notifications/settings.ts
index 9661bed1b..986d0b01d 100644
--- a/src/state/queries/notifications/settings.ts
+++ b/src/state/queries/notifications/settings.ts
@@ -14,7 +14,9 @@ import * as Toast from '#/view/com/util/Toast'
 const RQKEY_ROOT = 'notification-settings'
 const RQKEY = [RQKEY_ROOT]
 
-export function useNotificationSettingsQuery() {
+export function useNotificationSettingsQuery({
+  enabled,
+}: {enabled?: boolean} = {}) {
   const agent = useAgent()
 
   return useQuery({
@@ -23,6 +25,7 @@ export function useNotificationSettingsQuery() {
       const response = await agent.app.bsky.notification.getPreferences()
       return response.data.preferences
     },
+    enabled,
   })
 }
 export function useNotificationSettingsUpdateMutation() {