|
@@ -236,12 +236,17 @@
|
|
|
// start: main flow
|
|
|
enterClientRoomAsPro: function() {
|
|
|
@if($client)
|
|
|
- $.post('/api/meeting/enterClientRoomAsPro', {clientUid: '{{ $client->uid }}'}, (_data) => {
|
|
|
- if(!this.hasError(_data)) {
|
|
|
- this.appMode = 'video';
|
|
|
- this.getMeetingInfo(true);
|
|
|
- }
|
|
|
- });
|
|
|
+ this.socketClient.send("/app/leaveClientRoom", {},
|
|
|
+ JSON.stringify({sessionKey: '{{$performer->session_key}}'})
|
|
|
+ );
|
|
|
+ window.setTimeout(() => {
|
|
|
+ $.post('/api/meeting/enterClientRoomAsPro', {clientUid: '{{ $client->uid }}'}, (_data) => {
|
|
|
+ if(!this.hasError(_data)) {
|
|
|
+ this.appMode = 'video';
|
|
|
+ this.getMeetingInfo(true);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }, 250);
|
|
|
@endif
|
|
|
},
|
|
|
getMeetingInfo: function(_firstRun = false) {
|