Allow disabling replies (#8537)

This commit is contained in:
Samuel Newman
2025-06-20 22:44:53 +03:00
committed by GitHub
parent dcbcd1bb80
commit 25baf1f661
4 changed files with 61 additions and 23 deletions
+4 -1
View File
@@ -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() {