feat(settings): Notifications invite-accepted/invited-to-document toggles
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user