Return programme snapshot from Events link-room API.
Deploy Ladill Events / deploy (push) Successful in 31s
Deploy Ladill Events / deploy (push) Successful in 31s
Meet can persist the agenda locally when linking, even if the service-to-service Meet sync fails. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -110,11 +110,14 @@ class EventMeetRoomLinkService
|
||||
|
||||
$event = $this->sync->sync($event->fresh(), $owner);
|
||||
|
||||
$linkedSession = collect($event->content()['virtual_sessions'] ?? [])
|
||||
->first(fn ($session) => is_array($session) && (string) ($session['id'] ?? '') === $sessionId);
|
||||
|
||||
return array_merge($this->summarizeEvent($event), [
|
||||
'entity_id' => $sessionId,
|
||||
'meet_room_uuid' => $roomUuid,
|
||||
'join_url' => $joinUrl,
|
||||
]);
|
||||
], $this->sync->programmePayloadForSession($event, is_array($linkedSession) ? $linkedSession : $sessions[$matchedIndex]));
|
||||
}
|
||||
|
||||
/** @return array<string, mixed> */
|
||||
|
||||
Reference in New Issue
Block a user