diff --git a/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php b/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php index 054faae58bb7d..f85bc06972e9d 100644 --- a/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php +++ b/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php @@ -97,7 +97,7 @@ public function beforeWriteContent($uri, INode $node, $data, $modified): void { public function schedule(Message $iTipMessage) { // do not send imip messages if external system already did - if ($iTipMessage->message?->VEVENT?->{'X-NC-DISABLE-SCHEDULING'}?->getValue() === '1') { + if ($iTipMessage->message?->VEVENT?->{'X-NC-DISABLE-SCHEDULING'}?->getValue() === 'true') { if (!$iTipMessage->scheduleStatus) { $iTipMessage->scheduleStatus = '1.0;We got the message, but iMip message are disabled for this event'; } diff --git a/apps/dav/tests/unit/CalDAV/Schedule/IMipPluginTest.php b/apps/dav/tests/unit/CalDAV/Schedule/IMipPluginTest.php index b63ae036698c2..649c573d5bfd3 100644 --- a/apps/dav/tests/unit/CalDAV/Schedule/IMipPluginTest.php +++ b/apps/dav/tests/unit/CalDAV/Schedule/IMipPluginTest.php @@ -898,7 +898,7 @@ public function testImipDisabledForEvent(): void { $event = $calendar->VEVENT; $event->add('ORGANIZER', 'mailto:gandalf@wiz.ard'); $event->add('ATTENDEE', 'mailto:' . 'frodo@hobb.it', ['RSVP' => 'TRUE', 'CN' => 'Frodo']); - $event->add('X-NC-DISABLE-SCHEDULING', '1'); + $event->add('X-NC-DISABLE-SCHEDULING', 'true'); $message = new Message(); $message->method = 'REQUEST'; $message->message = $calendar; @@ -907,6 +907,6 @@ public function testImipDisabledForEvent(): void { $message->recipient = 'mailto:' . 'frodo@hobb.it'; $this->plugin->schedule($message); - $this->assertEquals('1.0', $message->getScheduleStatus()); + $this->assertEquals('1.0;We got the message, but iMip message are disabled for this event', $message->scheduleStatus); } }