Browse Source

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

Vijayakrishnan Krishnan 5 years ago
parent
commit
335bf6534c
1 changed files with 3 additions and 0 deletions
  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)) {
         if(!empty($uid)) {
             $client = DB::table('client')->where('uid', $uid)->first();
             $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', [
         return view('pro-call', [
             'guest' => false,
             'guest' => false,
             'session' => $session,
             'session' => $session,