feat(settings): Notifications reaction-added/collection-created toggles
This commit is contained in:
@@ -603,6 +603,20 @@ struct SettingsView: View {
|
||||
isOn: session.userNotificationSettings?[NotificationEventType.commentResolve.rawValue] ?? false,
|
||||
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 {
|
||||
Text(notificationsErrorMessage)
|
||||
|
||||
Reference in New Issue
Block a user