diff --git a/Outpost/Features/Account/SettingsView.swift b/Outpost/Features/Account/SettingsView.swift index 7c88ae5..6ab63bc 100644 --- a/Outpost/Features/Account/SettingsView.swift +++ b/Outpost/Features/Account/SettingsView.swift @@ -575,6 +575,20 @@ struct SettingsView: View { isOn: session.userNotificationSettings?[NotificationEventType.documentUpdate.rawValue] ?? false, onChange: { newValue in Task { await setNotifications([.documentUpdate], subscribed: newValue) } } ) + Divider() + notificationToggleRow( + "Comment posted", + description: "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment", + isOn: session.userNotificationSettings?[NotificationEventType.commentCreate.rawValue] ?? false, + onChange: { newValue in Task { await setNotifications([.commentCreate], subscribed: newValue) } } + ) + Divider() + notificationToggleRow( + "Mentioned", + description: "Receive a notification when someone mentions you in a document or comment", + isOn: [NotificationEventType.commentMentioned, .documentMentioned].allSatisfy { session.userNotificationSettings?[$0.rawValue] ?? false }, + onChange: { newValue in Task { await setNotifications([.commentMentioned, .documentMentioned], subscribed: newValue) } } + ) if let notificationsErrorMessage { Text(notificationsErrorMessage)