Browse Source

feat: don't auto-stage bot type participants

j8
Bettenbuk Zoltan 5 years ago
parent
commit
f66478fa34
1 changed files with 10 additions and 1 deletions
  1. 10
    1
      react/features/large-video/actions.js

+ 10
- 1
react/features/large-video/actions.js View File

145
                 //    As a last resort, pick the last participant who joined the
145
                 //    As a last resort, pick the last participant who joined the
146
                 //    conference (regardless of whether they are local or
146
                 //    conference (regardless of whether they are local or
147
                 //    remote).
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
                 id = participant && participant.id;
158
                 id = participant && participant.id;
150
             }
159
             }
151
         }
160
         }

Loading…
Cancel
Save