From 80ee81faa1333575aa93b0fd0321d0e5eb6c060d Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 6 Jul 2023 10:52:51 +0200 Subject: [PATCH] fix(dav): Move listener to actually existing event The legacy event was removed in 4bb31c021e02d1076b5edc13d352e9c058e7c253 Signed-off-by: Joas Schilling --- apps/dav/lib/AppInfo/Application.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/dav/lib/AppInfo/Application.php b/apps/dav/lib/AppInfo/Application.php index fb82e8a3afe..0cfa3efde9c 100644 --- a/apps/dav/lib/AppInfo/Application.php +++ b/apps/dav/lib/AppInfo/Application.php @@ -236,14 +236,14 @@ class Application extends App implements IBootstrap { }); - $dispatcher->addListener('\OCA\DAV\CalDAV\CalDavBackend::updateShares', function (GenericEvent $event) use ($container) { + $dispatcher->addListener(CalendarShareUpdatedEvent::class, function (CalendarShareUpdatedEvent $event) use ($container) { /** @var Backend $backend */ $backend = $container->query(Backend::class); $backend->onCalendarUpdateShares( - $event->getArgument('calendarData'), - $event->getArgument('shares'), - $event->getArgument('add'), - $event->getArgument('remove') + $event->getCalendarData(), + $event->getOldShares(), + $event->getAdded(), + $event->getRemoved() ); // Here we should recalculate if reminders should be sent to new or old sharees -- 2.39.5