瀏覽代碼

Post-hangup bug fix

Vijayakrishnan 4 年之前
父節點
當前提交
4ee14115af
共有 1 個文件被更改,包括 7 次插入5 次删除
  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) => {