Skip to content

Commit

Permalink
Send ITIP REPLY message when saving ext. event
Browse files Browse the repository at this point in the history
  • Loading branch information
oakey-b1 committed Jun 8, 2016
1 parent b8b02c5 commit 1757cd9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions kronolith/lib/Icalendar/Handler/Dav.php
Expand Up @@ -169,18 +169,19 @@ protected function _postSave(Kronolith_Event $event)
$this->_dav->addObjectMap($event->id, $this->_params['object'], $this->_calendar);
}

// Send iTip messages unless organizer is external.
// Send iTip messages
// Notifications will get lost, there is no way to return messages
// to clients.
$type = Kronolith::ITIP_REQUEST;
if ($event->organizer && !Kronolith::isUserEmail($event->creator, $event->organizer)) {
return;
$type = Kronolith::ITIP_REPLY;
}
$event_copy = clone($event);
$event_copy->attendees = $event->attendees->without($this->_noItips);
Kronolith::sendITipNotifications(
$event_copy,
new Horde_Notification_Handler(new Horde_Notification_Storage_Object()),
Kronolith::ITIP_REQUEST
$type
);
}

Expand Down

0 comments on commit 1757cd9

Please sign in to comment.