From f86056c4f8f09a8513e1670261ac54e789b8f157 Mon Sep 17 00:00:00 2001 From: damencho Date: Tue, 6 Sep 2016 12:00:13 -0500 Subject: [PATCH] Skips selecting local participant when alone in the room. --- conference.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/conference.js b/conference.js index 8ef7cd52e..4fd421b00 100644 --- a/conference.js +++ b/conference.js @@ -1374,6 +1374,12 @@ export default { APP.UI.addListener(UIEvents.SELECTED_ENDPOINT, (id) => { try { + // do not try to select participant if there is none (we are + // alone in the room), otherwise an error will be thrown cause + // reporting mechanism is not available (datachannels currently) + if (room.getParticipants().length === 0) + return; + room.selectParticipant(id); } catch (e) { JitsiMeetJS.analytics.sendEvent('selectParticipant.failed');