From: Thomas Citharel Date: Fri, 17 Dec 2021 14:49:21 +0000 (+0100) Subject: Clean reminders for calendar when deleting a subscription X-Git-Tag: v24.0.0beta1~196^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F20766%2Fhead;p=nextcloud-server.git Clean reminders for calendar when deleting a subscription Signed-off-by: Thomas Citharel --- diff --git a/apps/dav/lib/AppInfo/Application.php b/apps/dav/lib/AppInfo/Application.php index a2fd645ab8a..e25b63b598e 100644 --- a/apps/dav/lib/AppInfo/Application.php +++ b/apps/dav/lib/AppInfo/Application.php @@ -39,6 +39,7 @@ use OCA\DAV\CalDAV\BirthdayService; use OCA\DAV\CalDAV\CalDavBackend; use OCA\DAV\CalDAV\CalendarManager; use OCA\DAV\CalDAV\CalendarProvider; +use OCA\DAV\CalDAV\Reminder\Backend as ReminderBackend; use OCA\DAV\CalDAV\Reminder\NotificationProvider\AudioProvider; use OCA\DAV\CalDAV\Reminder\NotificationProvider\EmailProvider; use OCA\DAV\CalDAV\Reminder\NotificationProvider\PushProvider; @@ -306,6 +307,9 @@ class Application extends App implements IBootstrap { /** @var CalDavBackend $calDavBackend */ $calDavBackend = $container->query(CalDavBackend::class); $calDavBackend->purgeAllCachedEventsForSubscription($subscriptionData['id']); + /** @var ReminderBackend $calDavBackend */ + $reminderBackend = $container->query(ReminderBackend::class); + $reminderBackend->cleanRemindersForCalendar($subscriptionData['id']); } );