From c5bdb02a6c3aa051f3b38a64e4403011041c2c32 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 20 Feb 2026 08:15:15 +0100 Subject: [PATCH] fix(notifications): Update notifier exception handling Signed-off-by: Joas Schilling --- lib/Listener.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Listener.php b/lib/Listener.php index a5526ae7..97b13eec 100644 --- a/lib/Listener.php +++ b/lib/Listener.php @@ -22,6 +22,7 @@ use OCP\Notification\IDismissableNotifier; use OCP\Notification\INotification; use OCP\Notification\INotifier; +use OCP\Notification\UnknownNotificationException; use OCP\Share\Events\ShareCreatedEvent; use OCP\Share\IShare; @@ -102,7 +103,7 @@ public function getName(): string { } public function prepare(INotification $notification, string $languageCode): INotification { - throw new \InvalidArgumentException(); + throw new UnknownNotificationException(); } public function dismissNotification(INotification $notification): void {