diff options
author | Joas Schilling <coding@schilljs.com> | 2024-09-20 13:15:20 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2024-09-23 09:02:48 +0200 |
commit | 5193579e4f085fc8837a641522ed02570b9b02da (patch) | |
tree | e6d93874f69d55b28088e4ffcf83657447fc125f /lib/public | |
parent | 4ba3d4a31a5a27a7fad6b8928d899ec7247289ca (diff) | |
download | nextcloud-server-5193579e4f085fc8837a641522ed02570b9b02da.tar.gz nextcloud-server-5193579e4f085fc8837a641522ed02570b9b02da.zip |
feat(prioritynotifications): Allow some apps to mark notifications as priorityfeat/noid/priority-notifications
They will be still send as push during DND.
Apps are currently limited to:
- twofactor_nextcloud_notification to help with login
- spreed which will only set it for pushes in manually picked conversations
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Notification/INotification.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/public/Notification/INotification.php b/lib/public/Notification/INotification.php index 4a35ee59087..6083cca4f9a 100644 --- a/lib/public/Notification/INotification.php +++ b/lib/public/Notification/INotification.php @@ -264,6 +264,18 @@ interface INotification { public function getIcon(): string; /** + * @return $this + * @throws InvalidValueException if the app is not allowed to send priority notifications + * @since 31.0.0 + */ + public function setPriorityNotification(bool $priorityNotification): INotification; + + /** + * @since 31.0.0 + */ + public function isPriorityNotification(): bool; + + /** * @return IAction * @since 9.0.0 */ |