Skip to content

Commit

Permalink
fix: remove non-existing reminder notification
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>
  • Loading branch information
Pytal committed Aug 9, 2023
1 parent 89692cf commit 0b15fee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/files_reminders/lib/Notification/Notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
use OCP\Files\FileInfo;
use OCP\IURLGenerator;
use OCP\L10N\IFactory;
use OCP\Notification\AlreadyProcessedException;
use OCP\Notification\IAction;
use OCP\Notification\INotification;
use OCP\Notification\INotifier;
Expand All @@ -55,6 +56,7 @@ public function getName(): string {

/**
* @throws InvalidArgumentException
* @throws AlreadyProcessedException
*/
public function prepare(INotification $notification, string $languageCode): INotification {
$l = $this->l10nFactory->get(Application::APP_ID, $languageCode);
Expand All @@ -69,7 +71,7 @@ public function prepare(INotification $notification, string $languageCode): INot
try {
$reminder = $this->reminderService->get($reminderId);
} catch (DoesNotExistException $e) {
throw new InvalidArgumentException();
throw new AlreadyProcessedException();
}

try {
Expand Down

0 comments on commit 0b15fee

Please sign in to comment.