summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/AppInfo/Application.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2021-05-07 11:19:45 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2021-05-07 12:10:58 +0200
commitf808267949e5513188961ca5f6fc38d57f6c7fd1 (patch)
tree9bb3bea049c23491caa2ee2ff7a576b84f457985 /apps/dav/lib/AppInfo/Application.php
parentd512a5629ec01fecd87944836eb9b02eb11257b8 (diff)
downloadnextcloud-server-f808267949e5513188961ca5f6fc38d57f6c7fd1.tar.gz
nextcloud-server-f808267949e5513188961ca5f6fc38d57f6c7fd1.zip
Remove the \OCA\DAV\CalDAV\CalDavBackend::updateCalendarObject event
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/dav/lib/AppInfo/Application.php')
-rw-r--r--apps/dav/lib/AppInfo/Application.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/apps/dav/lib/AppInfo/Application.php b/apps/dav/lib/AppInfo/Application.php
index 8bedb287148..a5444bb20d8 100644
--- a/apps/dav/lib/AppInfo/Application.php
+++ b/apps/dav/lib/AppInfo/Application.php
@@ -118,8 +118,12 @@ class Application extends App implements IBootstrap {
$context->registerEventListener(CalendarDeletedEvent::class, ActivityUpdaterListener::class);
$context->registerEventListener(CalendarDeletedEvent::class, CalendarObjectReminderUpdaterListener::class);
$context->registerEventListener(CalendarDeletedEvent::class, CalendarDeletionDefaultUpdaterListener::class);
+
$context->registerEventListener(CalendarObjectCreatedEvent::class, CalendarContactInteractionListener::class);
+
+ $context->registerEventListener(CalendarObjectUpdatedEvent::class, ActivityUpdaterListener::class);
$context->registerEventListener(CalendarObjectUpdatedEvent::class, CalendarContactInteractionListener::class);
+ $context->registerEventListener(CalendarObjectUpdatedEvent::class, CalendarObjectReminderUpdaterListener::class);
$context->registerEventListener(CalendarObjectDeletedEvent::class, ActivityUpdaterListener::class);
$context->registerEventListener(CalendarObjectDeletedEvent::class, CalendarObjectReminderUpdaterListener::class);
$context->registerEventListener(CalendarShareUpdatedEvent::class, CalendarContactInteractionListener::class);
@@ -237,12 +241,8 @@ class Application extends App implements IBootstrap {
/** @var Backend $backend */
$backend = $container->query(Backend::class);
- $subject = Event::SUBJECT_OBJECT_ADD;
- if ($eventName === '\OCA\DAV\CalDAV\CalDavBackend::updateCalendarObject') {
- $subject = Event::SUBJECT_OBJECT_UPDATE;
- }
$backend->onTouchCalendarObject(
- $subject,
+ Event::SUBJECT_OBJECT_ADD,
$event->getArgument('calendarData'),
$event->getArgument('shares'),
$event->getArgument('objectData')
@@ -257,7 +257,6 @@ class Application extends App implements IBootstrap {
);
};
$dispatcher->addListener('\OCA\DAV\CalDAV\CalDavBackend::createCalendarObject', $listener);
- $dispatcher->addListener('\OCA\DAV\CalDAV\CalDavBackend::updateCalendarObject', $listener);
$dispatcher->addListener('OCP\Federation\TrustedServerEvent::remove',
function (GenericEvent $event) {
@@ -380,4 +379,4 @@ class Application extends App implements IBootstrap {
$logger->logException($ex);
}
}
-}
+} \ No newline at end of file