Skip Mail calendar sync for Meet rooms created by Ladill Events.
Deploy Ladill Meet / deploy (push) Successful in 2m1s
Deploy Ladill Meet / deploy (push) Successful in 2m1s
Events owns calendar entries for events-sourced rooms so virtual sessions do not duplicate on the webmail calendar. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -20,7 +20,7 @@ class CalendarService
|
||||
|
||||
public function syncRoomCreated(Room $room, User $host): void
|
||||
{
|
||||
if (! $room->scheduled_at) {
|
||||
if (! $room->scheduled_at || $room->isEventsSourced()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ class CalendarService
|
||||
|
||||
public function syncRoomUpdated(Room $room, User $host): void
|
||||
{
|
||||
if (! $room->scheduled_at) {
|
||||
if (! $room->scheduled_at || $room->isEventsSourced()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -59,6 +59,10 @@ class CalendarService
|
||||
|
||||
public function syncRoomCancelled(Room $room, User $host): void
|
||||
{
|
||||
if ($room->isEventsSourced()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($mailbox = $this->resolveMailMailbox($host)) {
|
||||
if ($room->calendar_event_id) {
|
||||
$this->mail->deleteEventForMailbox($mailbox, $room);
|
||||
|
||||
Reference in New Issue
Block a user