Skip to content

Commit 137a307

Browse files
tcitworldskjnldsv
authored andcommitted
Clean reminders for calendar when deleting a subscription
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
1 parent 0b4e06b commit 137a307

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/dav/lib/AppInfo/Application.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,9 @@ function (GenericEvent $event) use ($container, $serverContainer) {
333333
/** @var CalDavBackend $calDavBackend */
334334
$calDavBackend = $container->query(CalDavBackend::class);
335335
$calDavBackend->purgeAllCachedEventsForSubscription($subscriptionData['id']);
336+
/** @var ReminderBackend $calDavBackend */
337+
$reminderBackend = $container->query(ReminderBackend::class);
338+
$reminderBackend->cleanRemindersForCalendar($subscriptionData['id']);
336339
}
337340
);
338341

0 commit comments

Comments
 (0)