diff --git a/lib/Listener.php b/lib/Listener.php index a5526ae..97b13ee 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 {