|
@@ -145,7 +145,16 @@ function _electParticipantInLargeVideo(state) {
|
145
|
145
|
// As a last resort, pick the last participant who joined the
|
146
|
146
|
// conference (regardless of whether they are local or
|
147
|
147
|
// remote).
|
148
|
|
- participant = participants[participants.length - 1];
|
|
148
|
+ //
|
|
149
|
+ // HOWEVER: We don't want to show poltergeist or other bot type participants on stage
|
|
150
|
+ // automatically, because it's misleading (users may think they are already
|
|
151
|
+ // joined and maybe speaking).
|
|
152
|
+ for (let i = participants.length; i > 0 && !participant; i--) {
|
|
153
|
+ const p = participants[i - 1];
|
|
154
|
+
|
|
155
|
+ !p.botType && (participant = p);
|
|
156
|
+ }
|
|
157
|
+
|
149
|
158
|
id = participant && participant.id;
|
150
|
159
|
}
|
151
|
160
|
}
|