feat: don't auto-stage bot type participants

This commit is contained in:
Bettenbuk Zoltan 2019-06-06 14:00:15 +02:00 committed by Zoltan Bettenbuk
parent bf99051885
commit f66478fa34
1 changed files with 10 additions and 1 deletions

View File

@ -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;
}
}