feat(settings): Notifications document-published/document-updated toggles

This commit is contained in:
2026-08-17 21:52:15 +01:00
parent bf1e28c9ac
commit 8faa94f3cc
@@ -562,6 +562,19 @@ struct SettingsView: View {
allNotificationsRow
Divider()
notificationToggleRow(
"Document published",
description: "Receive a notification whenever a new document is published",
isOn: session.userNotificationSettings?[NotificationEventType.documentPublish.rawValue] ?? false,
onChange: { newValue in Task { await setNotifications([.documentPublish], subscribed: newValue) } }
)
Divider()
notificationToggleRow(
"Document updated",
description: "Receive a notification when a document you are subscribed to is edited",
isOn: session.userNotificationSettings?[NotificationEventType.documentUpdate.rawValue] ?? false,
onChange: { newValue in Task { await setNotifications([.documentUpdate], subscribed: newValue) } }
)
if let notificationsErrorMessage {
Text(notificationsErrorMessage)