diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-06-20 22:44:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-20 22:44:53 +0300 |
commit | 25baf1f6612103a9e777dc7175a9057ce3c399ae (patch) | |
tree | 06a3ff7c106de42a61d5b80e68a0fd875cb2d4b2 /src/state/queries/notifications/settings.ts | |
parent | dcbcd1bb80b7f0c45cea93ed9c10d2b33ac2f0fa (diff) | |
download | voidsky-25baf1f6612103a9e777dc7175a9057ce3c399ae.tar.zst |
Allow disabling replies (#8537)
Diffstat (limited to 'src/state/queries/notifications/settings.ts')
-rw-r--r-- | src/state/queries/notifications/settings.ts | 5 |
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() { |