Forráskód Böngészése

Auto-resume pro's meeting in case of accidental refresh

Vijayakrishnan Krishnan 5 éve
szülő
commit
335bf6534c
1 módosított fájl, 3 hozzáadás és 0 törlés
  1. 3 0
      app/Http/Controllers/ProController.php

+ 3 - 0
app/Http/Controllers/ProController.php

@@ -55,6 +55,9 @@ class ProController extends Controller
         if(!empty($uid)) {
             $client = DB::table('client')->where('uid', $uid)->first();
         }
+        else if($pro->in_meeting_with_client_id) {
+            $client = DB::table('client')->where('id', $pro->in_meeting_with_client_id)->first();
+        }
         return view('pro-call', [
             'guest' => false,
             'session' => $session,