From 8faa94f3cce3f881f47d4fb252a23f7e693f811e Mon Sep 17 00:00:00 2001 From: psmattas Date: Mon, 17 Aug 2026 21:52:15 +0100 Subject: [PATCH] feat(settings): Notifications document-published/document-updated toggles --- Outpost/Features/Account/SettingsView.swift | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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)