From aee09cb60a19107dfc032f9268b16ae15f191bcc Mon Sep 17 00:00:00 2001 From: psmattas Date: Mon, 17 Aug 2026 21:52:42 +0100 Subject: [PATCH] feat(settings): Notifications reaction-added/collection-created toggles --- Outpost/Features/Account/SettingsView.swift | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Outpost/Features/Account/SettingsView.swift b/Outpost/Features/Account/SettingsView.swift index 5445e84..be210c1 100644 --- a/Outpost/Features/Account/SettingsView.swift +++ b/Outpost/Features/Account/SettingsView.swift @@ -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)