Skip to content

Commit

Permalink
Clean reminders for calendar when deleting a subscription
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
  • Loading branch information
tcitworld authored and backportbot[bot] committed Feb 18, 2022
1 parent 219ede7 commit 2a0b989
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/dav/lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,9 @@ function (GenericEvent $event) use ($container, $serverContainer) {
/** @var CalDavBackend $calDavBackend */
$calDavBackend = $container->query(CalDavBackend::class);
$calDavBackend->purgeAllCachedEventsForSubscription($subscriptionData['id']);
/** @var ReminderBackend $calDavBackend */
$reminderBackend = $container->query(ReminderBackend::class);
$reminderBackend->cleanRemindersForCalendar($subscriptionData['id']);
}
);

Expand Down

0 comments on commit 2a0b989

Please sign in to comment.