From ddd67014468a691459efc8519232595807e4853a Mon Sep 17 00:00:00 2001 From: psmattas Date: Mon, 17 Aug 2026 21:52:50 +0100 Subject: [PATCH] feat(settings): Notifications invite-accepted/invited-to-document 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 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)