Bläddra i källkod

Skips selecting local participant when alone in the room.

master
damencho 9 år sedan
förälder
incheckning
f86056c4f8
1 ändrade filer med 6 tillägg och 0 borttagningar
  1. 6
    0
      conference.js

+ 6
- 0
conference.js Visa fil

@@ -1374,6 +1374,12 @@ export default {
1374 1374
 
1375 1375
         APP.UI.addListener(UIEvents.SELECTED_ENDPOINT, (id) => {
1376 1376
             try {
1377
+                // do not try to select participant if there is none (we are
1378
+                // alone in the room), otherwise an error will be thrown cause
1379
+                // reporting mechanism is not available (datachannels currently)
1380
+                if (room.getParticipants().length === 0)
1381
+                    return;
1382
+
1377 1383
                 room.selectParticipant(id);
1378 1384
             } catch (e) {
1379 1385
                 JitsiMeetJS.analytics.sendEvent('selectParticipant.failed');

Laddar…
Avbryt
Spara