Skip to content

Commit

Permalink
fixup! feat: Add X-NC-Disable-Scheduling property to allow skipping s…
Browse files Browse the repository at this point in the history
…cheduling

Signed-off-by: SebastianKrupinski <[email protected]>
  • Loading branch information
SebastianKrupinski committed Nov 11, 2024
1 parent 591a20d commit 016dd55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/dav/lib/CalDAV/Schedule/IMipPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +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
/** @psalm-suppress UndefinedPropertyFetch */
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';
Expand Down

0 comments on commit 016dd55

Please sign in to comment.