]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(dav): Move listener to actually existing event
authorJoas Schilling <coding@schilljs.com>
Thu, 6 Jul 2023 08:52:51 +0000 (10:52 +0200)
committerJoas Schilling <coding@schilljs.com>
Fri, 7 Jul 2023 08:53:20 +0000 (10:53 +0200)
The legacy event was removed in 4bb31c021e02d1076b5edc13d352e9c058e7c253

Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/dav/lib/AppInfo/Application.php

index fb82e8a3afecd41cfd82e33da3c58995c1e7b582..0cfa3efde9c84d204b726bf29b393124bbbbaebf 100644 (file)
@@ -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