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)