feat(settings): Notifications group-mentions/resolved toggles
This commit is contained in:
@@ -589,6 +589,20 @@ struct SettingsView: View {
|
||||
isOn: [NotificationEventType.commentMentioned, .documentMentioned].allSatisfy { session.userNotificationSettings?[$0.rawValue] ?? false },
|
||||
onChange: { newValue in Task { await setNotifications([.commentMentioned, .documentMentioned], subscribed: newValue) } }
|
||||
)
|
||||
Divider()
|
||||
notificationToggleRow(
|
||||
"Group mentions",
|
||||
description: "Receive a notification when someone mentions a group you are a member of in a document or comment",
|
||||
isOn: [NotificationEventType.commentGroupMentioned, .documentGroupMentioned].allSatisfy { session.userNotificationSettings?[$0.rawValue] ?? false },
|
||||
onChange: { newValue in Task { await setNotifications([.commentGroupMentioned, .documentGroupMentioned], subscribed: newValue) } }
|
||||
)
|
||||
Divider()
|
||||
notificationToggleRow(
|
||||
"Resolved",
|
||||
description: "Receive a notification when a comment thread you were involved in is resolved",
|
||||
isOn: session.userNotificationSettings?[NotificationEventType.commentResolve.rawValue] ?? false,
|
||||
onChange: { newValue in Task { await setNotifications([.commentResolve], subscribed: newValue) } }
|
||||
)
|
||||
|
||||
if let notificationsErrorMessage {
|
||||
Text(notificationsErrorMessage)
|
||||
|
||||
Reference in New Issue
Block a user