From: Joas Schilling Date: Thu, 6 Jul 2023 08:52:51 +0000 (+0200) Subject: fix(dav): Move listener to actually existing event X-Git-Tag: v28.0.0beta1~744^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=80ee81faa1333575aa93b0fd0321d0e5eb6c060d;p=nextcloud-server.git fix(dav): Move listener to actually existing event The legacy event was removed in 4bb31c021e02d1076b5edc13d352e9c058e7c253 Signed-off-by: Joas Schilling --- 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