Documentation ¶
Overview ¶
Package profilemanager implements util functions for managing push notification settings profiles for Matrix users.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyProfile ¶
ApplyProfile retrieves and apply a notification profile. Returns matrix.ErrProfileNotExists if the required profile doesn't exist. Returns an error if retrieving the profile or applying it failed.
func DeleteProfile ¶
DeleteProfile deletes a notification profile from the user's account data. Returns an error if either the deletion failed or no profile exists for this name (in which case it returns matrix.ErrProfileNotExists).
func SnapshotSettings ¶
SnapshotSettings takes a snapshot of the current notifications settings for the user and saves it as a profile in the user's account data. If a profile already exists with this name, returns matrix.ErrProfileExists unless overwrite is true, in which case it overwrites the existing profile for this name. Returns an error if either retrieving the settings or saving the profile failed.
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package matrix implements Matrix-specific operations and logic for managing push notification settings profiles for Matrix users.
|
Package matrix implements Matrix-specific operations and logic for managing push notification settings profiles for Matrix users. |
Package types implements types for managing push notification settings profiles for Matrix users.
|
Package types implements types for managing push notification settings profiles for Matrix users. |