diff options
author | Thomas Citharel <tcit@tcit.fr> | 2021-12-17 15:49:21 +0100 |
---|---|---|
committer | John Molakvoæ (Rebase PR Action) <skjnldsv@users.noreply.github.com> | 2022-02-24 07:23:51 +0000 |
commit | 3d82ff605ba5d3058eacd9b88e42080afc07788d (patch) | |
tree | 94ae20edcdc803d8427e84b9f4105d9ac9b722d4 | |
parent | 57aa0716a1ad2b0ffee343de9ebd7e9d5da726ea (diff) | |
download | nextcloud-server-3d82ff605ba5d3058eacd9b88e42080afc07788d.tar.gz nextcloud-server-3d82ff605ba5d3058eacd9b88e42080afc07788d.zip |
Clean reminders for calendar when deleting a subscription
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
-rw-r--r-- | apps/dav/lib/AppInfo/Application.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/dav/lib/AppInfo/Application.php b/apps/dav/lib/AppInfo/Application.php index 7e26912120a..8d9bd230f94 100644 --- a/apps/dav/lib/AppInfo/Application.php +++ b/apps/dav/lib/AppInfo/Application.php @@ -38,6 +38,7 @@ use OCA\DAV\CalDAV\Activity\Backend; use OCA\DAV\CalDAV\BirthdayService; use OCA\DAV\CalDAV\CalDavBackend; use OCA\DAV\CalDAV\CalendarManager; +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; @@ -303,6 +304,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']); } ); |