From a1df1b3d3dcd436b6e226689a4b479632adaff3b Mon Sep 17 00:00:00 2001 From: psmattas Date: Mon, 17 Aug 2026 21:52:25 +0100 Subject: [PATCH] feat(settings): Notifications comment-posted/mentioned toggles "Mentioned" groups comments.mentioned + documents.mentioned under one visible toggle, per Outline's own settings copy. --- 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 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)