Skip to main content

Module notifications

Module notifications 

Source
Expand description

The local notification settings model and the pure rules over it.

Structs§

NotificationConfig
Delivery details and rules used to compute the desired subscriptions.

Enums§

NotificationChannel
The delivery endpoint. Credentials are omitted from debug output.
NotificationOverride
A conversation rule. Sync groups use the client rule only.

Functions§

decode
Decodes a stored notification value from JSON.
effective
Resolve only local rules. Active membership is checked separately by the task.
enabled_from_record
Whether notifications for group are on: the record is enabled and its stored configuration’s local rules allow the group.
encode
Encodes a stored notification value as JSON.
encode_config
Encode a configuration, which holds the HTTP signing key, for storage.
notification_settings_changed
Invalidates prepared notification batches and emits NotificationSettingsChanged.
recipient_secret
A copy of the stored recipient secret for a request, which wipes it on drop.
stored_config
Decode the stored configuration. The stored bytes stay in their StoredSecret, and the signing key decodes straight into a Secret.