From 2fc279c3ce932238188b6ecb38e3e5d5cbca21b1 Mon Sep 17 00:00:00 2001 From: psmattas Date: Mon, 17 Aug 2026 21:52:58 +0100 Subject: [PATCH] feat(settings): Notifications invited-to-collection/export-completed 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 c44df6d..8be3224 100644 --- a/Outpost/Features/Account/SettingsView.swift +++ b/Outpost/Features/Account/SettingsView.swift @@ -631,6 +631,20 @@ struct SettingsView: View { isOn: session.userNotificationSettings?[NotificationEventType.documentAddUser.rawValue] ?? false, onChange: { newValue in Task { await setNotifications([.documentAddUser], subscribed: newValue) } } ) + Divider() + notificationToggleRow( + "Invited to collection", + description: "Receive a notification when you are given access to a collection", + isOn: session.userNotificationSettings?[NotificationEventType.collectionAddUser.rawValue] ?? false, + onChange: { newValue in Task { await setNotifications([.collectionAddUser], subscribed: newValue) } } + ) + Divider() + notificationToggleRow( + "Export completed", + description: "Receive a notification when an export you requested has been completed", + isOn: session.userNotificationSettings?[NotificationEventType.emailsExportCompleted.rawValue] ?? false, + onChange: { newValue in Task { await setNotifications([.emailsExportCompleted], subscribed: newValue) } } + ) if let notificationsErrorMessage { Text(notificationsErrorMessage)