We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 61019d5 + 6ceecd4 commit 989db86Copy full SHA for 989db86
1 file changed
lib/Notification/Notifier.php
@@ -16,6 +16,7 @@
16
use OCP\Notification\AlreadyProcessedException;
17
use OCP\Notification\INotification;
18
use OCP\Notification\INotifier;
19
+use OCP\Notification\UnknownNotificationException;
20
21
class Notifier implements INotifier {
22
/** @var IFactory */
@@ -77,7 +78,7 @@ public function getName(): string {
77
78
public function prepare(INotification $notification, string $languageCode): INotification {
79
$l = $this->l10nFactory->get('deck', $languageCode);
80
if ($notification->getApp() !== 'deck') {
- throw new \InvalidArgumentException();
81
+ throw new UnknownNotificationException();
82
}
83
$notification->setIcon($this->url->getAbsoluteURL($this->url->imagePath('deck', 'deck-dark.svg')));
84
$params = $notification->getSubjectParameters();
0 commit comments