Skip to content

Commit

Permalink
feat: don't auto-stage bot type participants
Browse files Browse the repository at this point in the history
  • Loading branch information
zbettenbuk committed Jun 6, 2019
1 parent 0fafa79 commit 8c439fa
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion react/features/large-video/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,16 @@ function _electParticipantInLargeVideo(state) {
// As a last resort, pick the last participant who joined the
// conference (regardless of whether they are local or
// remote).
participant = participants[participants.length - 1];
//
// HOWEVER: We don't want to show poltergeist or other bot type participants on stage
// automatically, because it's misleading (users may think they are already
// joined and maybe speaking).
for (let i = participants.length; i > 0 && !participant; i--) {
const p = participants[i - 1];

!p.botType && (participant = p);
}

id = participant && participant.id;
}
}
Expand Down

0 comments on commit 8c439fa

Please # to comment.