feat(settings): Notifications reaction-added/collection-created toggles

This commit is contained in:
2026-08-17 21:52:42 +01:00
parent 944d0bf373
commit aee09cb60a
@@ -603,6 +603,20 @@ struct SettingsView: View {
isOn: session.userNotificationSettings?[NotificationEventType.commentResolve.rawValue] ?? false, isOn: session.userNotificationSettings?[NotificationEventType.commentResolve.rawValue] ?? false,
onChange: { newValue in Task { await setNotifications([.commentResolve], subscribed: newValue) } } onChange: { newValue in Task { await setNotifications([.commentResolve], subscribed: newValue) } }
) )
Divider()
notificationToggleRow(
"Reaction added",
description: "Receive a notification when someone reacts to your comment",
isOn: session.userNotificationSettings?[NotificationEventType.reactionCreate.rawValue] ?? false,
onChange: { newValue in Task { await setNotifications([.reactionCreate], subscribed: newValue) } }
)
Divider()
notificationToggleRow(
"Collection created",
description: "Receive a notification whenever a new collection is created",
isOn: session.userNotificationSettings?[NotificationEventType.collectionCreate.rawValue] ?? false,
onChange: { newValue in Task { await setNotifications([.collectionCreate], subscribed: newValue) } }
)
if let notificationsErrorMessage { if let notificationsErrorMessage {
Text(notificationsErrorMessage) Text(notificationsErrorMessage)