Skip to content

Commit 0b15fee

Browse files
committed
fix: remove non-existing reminder notification
Signed-off-by: Christopher Ng <chrng8@gmail.com>
1 parent 89692cf commit 0b15fee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/files_reminders/lib/Notification/Notifier.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
use OCP\Files\FileInfo;
3535
use OCP\IURLGenerator;
3636
use OCP\L10N\IFactory;
37+
use OCP\Notification\AlreadyProcessedException;
3738
use OCP\Notification\IAction;
3839
use OCP\Notification\INotification;
3940
use OCP\Notification\INotifier;
@@ -55,6 +56,7 @@ public function getName(): string {
5556

5657
/**
5758
* @throws InvalidArgumentException
59+
* @throws AlreadyProcessedException
5860
*/
5961
public function prepare(INotification $notification, string $languageCode): INotification {
6062
$l = $this->l10nFactory->get(Application::APP_ID, $languageCode);
@@ -69,7 +71,7 @@ public function prepare(INotification $notification, string $languageCode): INot
6971
try {
7072
$reminder = $this->reminderService->get($reminderId);
7173
} catch (DoesNotExistException $e) {
72-
throw new InvalidArgumentException();
74+
throw new AlreadyProcessedException();
7375
}
7476

7577
try {

0 commit comments

Comments
 (0)