Selaa lähdekoodia

Post-hangup bug fix

Vijayakrishnan 4 vuotta sitten
vanhempi
commit
4ee14115af
1 muutettua tiedostoa jossa 7 lisäystä ja 5 poistoa
  1. 7 5
      resources/views/app/video/call-agora-v2.blade.php

+ 7 - 5
resources/views/app/video/call-agora-v2.blade.php

@@ -216,11 +216,13 @@
 
                     // start: main flow
                     enterClientRoomAsPro: function() {
-                        $.post('/api/meeting/enterClientRoomAsPro', {clientUid: '{{ $client->uid }}'}, (_data) => {
-                            // TODO: check success
-                            console.log(_data);
-                            this.getMeetingInfo(true);
-                        });
+                        @if($client)
+                            $.post('/api/meeting/enterClientRoomAsPro', {clientUid: '{{ $client->uid }}'}, (_data) => {
+                                // TODO: check success
+                                console.log(_data);
+                                this.getMeetingInfo(true);
+                            });
+                        @endif
                     },
                     getMeetingInfo: function(_firstRun = false) {
                         $.post('/api/meeting/getMyMeeting', (_data) => {