diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php index 57279ff..1d40c4d 100644 --- a/lib/Notification/Notifier.php +++ b/lib/Notification/Notifier.php @@ -25,12 +25,12 @@ namespace OCA\FlowNotifications\Notification; -use InvalidArgumentException; use OCA\FlowNotifications\AppInfo\Application; use OCP\IL10N; use OCP\IURLGenerator; use OCP\Notification\INotification; use OCP\Notification\INotifier; +use OCP\Notification\UnknownNotificationException; use OCP\WorkflowEngine\EntityContext\IContextPortation; use OCP\WorkflowEngine\EntityContext\IDisplayText; use OCP\WorkflowEngine\EntityContext\IIcon; @@ -66,7 +66,7 @@ public function getName(): string { */ public function prepare(INotification $notification, string $languageCode): INotification { if ($notification->getApp() !== Application::APP_ID) { - throw new InvalidArgumentException(); + throw new UnknownNotificationException(); } /** @var IEntity $entity */