diff options
author | Joas Schilling <coding@schilljs.com> | 2023-07-06 10:52:51 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-07-07 10:53:20 +0200 |
commit | 80ee81faa1333575aa93b0fd0321d0e5eb6c060d (patch) | |
tree | 0338a602b1e8f65b1b746fbff138f3086da97ea3 /apps/dav/lib/AppInfo | |
parent | f59c74062ac8621ec939773d2edf92cf63259e87 (diff) | |
download | nextcloud-server-80ee81faa1333575aa93b0fd0321d0e5eb6c060d.tar.gz nextcloud-server-80ee81faa1333575aa93b0fd0321d0e5eb6c060d.zip |
fix(dav): Move listener to actually existing event
The legacy event was removed in 4bb31c021e02d1076b5edc13d352e9c058e7c253
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/dav/lib/AppInfo')
-rw-r--r-- | apps/dav/lib/AppInfo/Application.php | 10 |
1 files 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 |