-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
While the default behavior should be to send notifications to users for their own actions (Issue #849), some users may find this redundant. We should provide a way for users to opt-out of this behavior in their notification settings.
Proposed Changes
- Update Database Schema: Add a new boolean column
notify_on_own_actionsto thenotification_preferencestable insrc/server/db/schema.ts, defaulting totrue. - Update Preferences UI: Add a toggle in the user settings/notifications page to allow users to disable this preference.
- Update Notification Logic:
- Modify
createNotificationinsrc/lib/notifications.tsto always include the actor in the initialrecipientIdsset (if they are a watcher/owner). - In the loop where preferences are checked, use the new
notify_on_own_actionspreference to decide whether to actually send the notification to the actor.
- Modify
Relevant Files
src/server/db/schema.ts: Schema for notification preferences.src/lib/notifications.ts: Logic for filtering recipients based on preferences.src/app/(app)/settings/notifications/page.tsx: UI for managing preferences.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels