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
+27
View File
@@ -769,6 +769,33 @@ class MeetWebTest extends TestCase
});
}
public function test_events_sourced_room_does_not_sync_to_mail_calendar(): void
{
\Illuminate\Support\Facades\Http::fake([
'mail.ladill.com/*' => \Illuminate\Support\Facades\Http::response(['data' => ['id' => 99]], 201),
]);
config([
'meet.calendar.mail.api_url' => 'https://mail.ladill.com/api/service/v1',
'meet.calendar.mail.api_key' => 'mail-test-key',
]);
$room = $this->createRoom([
'scheduled_at' => now()->addDay(),
'source' => [
'app' => 'events',
'entity_type' => 'virtual_session',
'entity_id' => 'vs-1',
'event_id' => '42',
],
]);
app(\App\Services\Meet\CalendarService::class)->syncRoomCreated($room, $this->user);
\Illuminate\Support\Facades\Http::assertNothingSent();
$this->assertNull($room->fresh()->calendar_event_id);
}
public function test_host_can_create_conference(): void
{
$this->actingAs($this->user)