Преглед на файлове

feat: don't auto-stage bot type participants

j8
Bettenbuk Zoltan преди 5 години
родител
ревизия
f66478fa34
променени са 1 файла, в които са добавени 10 реда и са изтрити 1 реда
  1. 10
    1
      react/features/large-video/actions.js

+ 10
- 1
react/features/large-video/actions.js Целия файл

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

Loading…
Отказ
Запис