Browse Source

Renames isBot -> isFakeParticipant.

master
damencho 7 years ago
parent
commit
682169e44c

+ 1
- 1
modules/UI/shared_video/SharedVideo.js View File

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

+ 1
- 1
modules/UI/videolayout/VideoLayout.js View File

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

+ 1
- 1
react/features/base/conference/middleware.js View File

287
     let pin;
287
     let pin;
288
 
288
 
289
     if (participantById) {
289
     if (participantById) {
290
-        pin = !participantById.local && !participantById.isBot;
290
+        pin = !participantById.local && !participantById.isFakeParticipant;
291
     } else {
291
     } else {
292
         const localParticipant = getLocalParticipant(participants);
292
         const localParticipant = getLocalParticipant(participants);
293
 
293
 

+ 1
- 1
react/features/base/participants/functions.js View File

213
  * @returns {Participant[]}
213
  * @returns {Participant[]}
214
  */
214
  */
215
 export function getParticipants(stateful: Object | Function) {
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 View File

183
         connectionStatus,
183
         connectionStatus,
184
         dominantSpeaker,
184
         dominantSpeaker,
185
         email,
185
         email,
186
-        isBot,
186
+        isFakeParticipant,
187
         local,
187
         local,
188
         name,
188
         name,
189
         pinned,
189
         pinned,
217
         dominantSpeaker: dominantSpeaker || false,
217
         dominantSpeaker: dominantSpeaker || false,
218
         email,
218
         email,
219
         id,
219
         id,
220
-        isBot,
220
+        isFakeParticipant,
221
         local: local || false,
221
         local: local || false,
222
         name,
222
         name,
223
         pinned: pinned || false,
223
         pinned: pinned || false,

Loading…
Cancel
Save