diff --git a/Outpost/Features/Account/SettingsView.swift b/Outpost/Features/Account/SettingsView.swift index 45c01d2..7c88ae5 100644 --- a/Outpost/Features/Account/SettingsView.swift +++ b/Outpost/Features/Account/SettingsView.swift @@ -562,6 +562,19 @@ struct SettingsView: View { allNotificationsRow Divider() + notificationToggleRow( + "Document published", + description: "Receive a notification whenever a new document is published", + isOn: session.userNotificationSettings?[NotificationEventType.documentPublish.rawValue] ?? false, + onChange: { newValue in Task { await setNotifications([.documentPublish], subscribed: newValue) } } + ) + Divider() + notificationToggleRow( + "Document updated", + description: "Receive a notification when a document you are subscribed to is edited", + isOn: session.userNotificationSettings?[NotificationEventType.documentUpdate.rawValue] ?? false, + onChange: { newValue in Task { await setNotifications([.documentUpdate], subscribed: newValue) } } + ) if let notificationsErrorMessage { Text(notificationsErrorMessage)