Sync email team invites, meeting room fixes, Afia, and org settings.
Deploy Ladill Meet / deploy (push) Successful in 47s
Deploy Ladill Meet / deploy (push) Successful in 47s
Publish monorepo meet changes: identity API invites, join/room session fixes, Afia assistant panel, settings nav, and SSO team provisioning. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -7,6 +7,7 @@ use App\Models\Room;
|
||||
use App\Models\Session;
|
||||
use App\Models\User;
|
||||
use App\Services\Meet\Media\MediaProviderInterface;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class SessionService
|
||||
@@ -135,6 +136,20 @@ class SessionService
|
||||
return $participant;
|
||||
}
|
||||
|
||||
public function rememberParticipantSession(Request $request, Participant $participant, ?Session $session = null): void
|
||||
{
|
||||
$session ??= $participant->session;
|
||||
$request->session()->put("meet.participant.{$session->uuid}", $participant->uuid);
|
||||
}
|
||||
|
||||
public function joinedParticipantForUser(Session $session, User $user): ?Participant
|
||||
{
|
||||
return $session->participants()
|
||||
->where('user_ref', $user->ownerRef())
|
||||
->whereIn('status', ['invited', 'waiting', 'joined'])
|
||||
->first();
|
||||
}
|
||||
|
||||
public function leaveParticipant(Participant $participant): Participant
|
||||
{
|
||||
$participant->update([
|
||||
|
||||
Reference in New Issue
Block a user