From 127bcfad5db39df54583d9e080aa9db26ffd9cec Mon Sep 17 00:00:00 2001 From: SebastianKrupinski Date: Mon, 9 Feb 2026 10:52:03 -0500 Subject: [PATCH] fix: obey x-nc-scheduling flag on delete Signed-off-by: SebastianKrupinski --- apps/dav/lib/CalDAV/Schedule/Plugin.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/dav/lib/CalDAV/Schedule/Plugin.php b/apps/dav/lib/CalDAV/Schedule/Plugin.php index d5ddfa09b248c..209f6a4201dd3 100644 --- a/apps/dav/lib/CalDAV/Schedule/Plugin.php +++ b/apps/dav/lib/CalDAV/Schedule/Plugin.php @@ -165,6 +165,7 @@ public function calendarObjectChange(RequestInterface $request, ResponseInterfac // Do not generate iTip and iMip messages if scheduling is disabled for this message if ($request->getHeader('x-nc-scheduling') === 'false') { + $this->logger->debug('Skipping scheduling messages for calendar object change because x-nc-scheduling header is set to false'); return; } @@ -212,6 +213,13 @@ public function calendarObjectChange(RequestInterface $request, ResponseInterfac * @inheritDoc */ public function beforeUnbind($path): void { + + // Do not generate iTip and iMip messages if scheduling is disabled for this message + if ($this->server->httpRequest->getHeader('x-nc-scheduling') === 'false') { + $this->logger->debug('Skipping scheduling messages for calendar object delete because x-nc-scheduling header is set to false'); + return; + } + try { parent::beforeUnbind($path); } catch (SameOrganizerForAllComponentsException $e) {