|
|
@@ -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');
|