diff --git a/Outpost/Features/Account/SettingsView.swift b/Outpost/Features/Account/SettingsView.swift index be210c1..c44df6d 100644 --- a/Outpost/Features/Account/SettingsView.swift +++ b/Outpost/Features/Account/SettingsView.swift @@ -617,6 +617,20 @@ struct SettingsView: View { isOn: session.userNotificationSettings?[NotificationEventType.collectionCreate.rawValue] ?? false, onChange: { newValue in Task { await setNotifications([.collectionCreate], subscribed: newValue) } } ) + Divider() + notificationToggleRow( + "Invite accepted", + description: "Receive a notification when someone you invited creates an account", + isOn: session.userNotificationSettings?[NotificationEventType.emailsInviteAccepted.rawValue] ?? false, + onChange: { newValue in Task { await setNotifications([.emailsInviteAccepted], subscribed: newValue) } } + ) + Divider() + notificationToggleRow( + "Invited to document", + description: "Receive a notification when a document is shared with you", + isOn: session.userNotificationSettings?[NotificationEventType.documentAddUser.rawValue] ?? false, + onChange: { newValue in Task { await setNotifications([.documentAddUser], subscribed: newValue) } } + ) if let notificationsErrorMessage { Text(notificationsErrorMessage)