Просмотр исходного кода

Renames isBot -> isFakeParticipant.

master
damencho 7 лет назад
Родитель
Сommit
682169e44c

+ 1
- 1
modules/UI/shared_video/SharedVideo.js Просмотреть файл

@@ -305,7 +305,7 @@ export default class SharedVideoManager {
305 305
                 // JitsiMeetLogStorage.
306 306
                 conference: APP.conference._room,
307 307
                 id: self.url,
308
-                isBot: true,
308
+                isFakeParticipant: true,
309 309
                 name: 'YouTube'
310 310
             }));
311 311
 

+ 1
- 1
modules/UI/videolayout/VideoLayout.js Просмотреть файл

@@ -447,7 +447,7 @@ const VideoLayout = {
447 447
     addRemoteParticipantContainer(participant) {
448 448
         if (!participant || participant.local) {
449 449
             return;
450
-        } else if (participant.isBot) {
450
+        } else if (participant.isFakeParticipant) {
451 451
             const sharedVideoThumb = new SharedVideoThumb(
452 452
                 participant,
453 453
                 SHARED_VIDEO_CONTAINER_TYPE,

+ 1
- 1
react/features/base/conference/middleware.js Просмотреть файл

@@ -287,7 +287,7 @@ function _pinParticipant({ getState }, next, action) {
287 287
     let pin;
288 288
 
289 289
     if (participantById) {
290
-        pin = !participantById.local && !participantById.isBot;
290
+        pin = !participantById.local && !participantById.isFakeParticipant;
291 291
     } else {
292 292
         const localParticipant = getLocalParticipant(participants);
293 293
 

+ 1
- 1
react/features/base/participants/functions.js Просмотреть файл

@@ -213,7 +213,7 @@ export function getParticipantPresenceStatus(
213 213
  * @returns {Participant[]}
214 214
  */
215 215
 export function getParticipants(stateful: Object | Function) {
216
-    return _getAllParticipants(stateful).filter(p => !p.isBot);
216
+    return _getAllParticipants(stateful).filter(p => !p.isFakeParticipant);
217 217
 }
218 218
 
219 219
 /**

+ 2
- 2
react/features/base/participants/reducer.js Просмотреть файл

@@ -183,7 +183,7 @@ function _participantJoined({ participant }) {
183 183
         connectionStatus,
184 184
         dominantSpeaker,
185 185
         email,
186
-        isBot,
186
+        isFakeParticipant,
187 187
         local,
188 188
         name,
189 189
         pinned,
@@ -217,7 +217,7 @@ function _participantJoined({ participant }) {
217 217
         dominantSpeaker: dominantSpeaker || false,
218 218
         email,
219 219
         id,
220
-        isBot,
220
+        isFakeParticipant,
221 221
         local: local || false,
222 222
         name,
223 223
         pinned: pinned || false,

Загрузка…
Отмена
Сохранить