Skip Mail calendar sync for Meet rooms created by Ladill Events.
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:
isaacclad
2026-07-04 11:48:37 +00:00
co-authored by Cursor
parent 25de2ed7bc
commit d8914b96fe
3 changed files with 38 additions and 2 deletions
+6 -2
View File
@@ -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);