Add Conferences and audio-only Rooms, plus mobile schedule icon.
Deploy Ladill Meet / deploy (push) Successful in 1m29s
Deploy Ladill Meet / deploy (push) Successful in 1m29s
Split town_hall into a Conferences sidebar flow and Spaces-style Rooms with host/speaker/listener roles; enforce audio-only LiveKit UI for rooms; show schedule icon on mobile meetings index. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -45,7 +45,7 @@ class RoomController extends Controller
|
||||
$owner = $this->ownerRef($request);
|
||||
|
||||
$query = Room::owned($owner)->where('organization_id', $organization->id)
|
||||
->where('type', '!=', 'webinar');
|
||||
->whereNotIn('type', ['webinar', 'town_hall', 'space']);
|
||||
$this->scopeToBranch($request, $query);
|
||||
|
||||
$rooms = $query->orderByDesc('scheduled_at')->paginate(20);
|
||||
@@ -80,7 +80,7 @@ class RoomController extends Controller
|
||||
$validated = $request->validate([
|
||||
'title' => ['required', 'string', 'max:255'],
|
||||
'description' => ['nullable', 'string', 'max:2000'],
|
||||
'type' => ['nullable', 'string', 'in:scheduled,town_hall'],
|
||||
'type' => ['nullable', 'string', 'in:scheduled'],
|
||||
'scheduled_at' => ['nullable', 'date'],
|
||||
'duration_minutes' => ['nullable', 'integer', 'min:15', 'max:480'],
|
||||
'timezone' => ['nullable', 'timezone'],
|
||||
@@ -122,16 +122,6 @@ class RoomController extends Controller
|
||||
|
||||
if (! empty($validated['recurrence_rule']) && ! $isInstant) {
|
||||
$room = $this->recurring->createSeries($request->user(), $organization, $data);
|
||||
} elseif (($validated['type'] ?? '') === 'town_hall') {
|
||||
abort_if($isInstant, 422, 'Town halls must be scheduled.');
|
||||
$room = $this->rooms->create($request->user(), $organization, array_merge($data, [
|
||||
'type' => 'town_hall',
|
||||
'status' => 'scheduled',
|
||||
'settings' => array_merge($settings, [
|
||||
'green_room' => true,
|
||||
'practice_mode' => $request->boolean('practice_mode'),
|
||||
]),
|
||||
]));
|
||||
} elseif ($isInstant) {
|
||||
$room = $this->rooms->createInstant($request->user(), $organization, $data);
|
||||
} else {
|
||||
@@ -162,6 +152,14 @@ class RoomController extends Controller
|
||||
return redirect()->route('meet.webinars.show', $room);
|
||||
}
|
||||
|
||||
if ($room->isConference()) {
|
||||
return redirect()->route('meet.conferences.show', $room);
|
||||
}
|
||||
|
||||
if ($room->isSpace()) {
|
||||
return redirect()->route('meet.spaces.show', $room);
|
||||
}
|
||||
|
||||
$room->load(['sessions.participants', 'invitations', 'sessions.recordings', 'sessions.aiSummaries', 'sessionFiles', 'webinarRegistrations']);
|
||||
|
||||
return view('meet.rooms.show', compact('room'));
|
||||
|
||||
Reference in New Issue
Block a user