From 682169e44c1ba1b06882fa429d9ecbc45d64a332 Mon Sep 17 00:00:00 2001 From: damencho Date: Fri, 22 Jun 2018 13:59:54 -0500 Subject: [PATCH] Renames isBot -> isFakeParticipant. --- modules/UI/shared_video/SharedVideo.js | 2 +- modules/UI/videolayout/VideoLayout.js | 2 +- react/features/base/conference/middleware.js | 2 +- react/features/base/participants/functions.js | 2 +- react/features/base/participants/reducer.js | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/UI/shared_video/SharedVideo.js b/modules/UI/shared_video/SharedVideo.js index 901b846f8..2d5d83480 100644 --- a/modules/UI/shared_video/SharedVideo.js +++ b/modules/UI/shared_video/SharedVideo.js @@ -305,7 +305,7 @@ export default class SharedVideoManager { // JitsiMeetLogStorage. conference: APP.conference._room, id: self.url, - isBot: true, + isFakeParticipant: true, name: 'YouTube' })); diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js index d7271cf7d..1fda015bd 100644 --- a/modules/UI/videolayout/VideoLayout.js +++ b/modules/UI/videolayout/VideoLayout.js @@ -447,7 +447,7 @@ const VideoLayout = { addRemoteParticipantContainer(participant) { if (!participant || participant.local) { return; - } else if (participant.isBot) { + } else if (participant.isFakeParticipant) { const sharedVideoThumb = new SharedVideoThumb( participant, SHARED_VIDEO_CONTAINER_TYPE, diff --git a/react/features/base/conference/middleware.js b/react/features/base/conference/middleware.js index 60e9dfed1..974da3d63 100644 --- a/react/features/base/conference/middleware.js +++ b/react/features/base/conference/middleware.js @@ -287,7 +287,7 @@ function _pinParticipant({ getState }, next, action) { let pin; if (participantById) { - pin = !participantById.local && !participantById.isBot; + pin = !participantById.local && !participantById.isFakeParticipant; } else { const localParticipant = getLocalParticipant(participants); diff --git a/react/features/base/participants/functions.js b/react/features/base/participants/functions.js index 3a4db5edb..ea24a6890 100644 --- a/react/features/base/participants/functions.js +++ b/react/features/base/participants/functions.js @@ -213,7 +213,7 @@ export function getParticipantPresenceStatus( * @returns {Participant[]} */ export function getParticipants(stateful: Object | Function) { - return _getAllParticipants(stateful).filter(p => !p.isBot); + return _getAllParticipants(stateful).filter(p => !p.isFakeParticipant); } /** diff --git a/react/features/base/participants/reducer.js b/react/features/base/participants/reducer.js index 9dc2f0ff8..ace2cd655 100644 --- a/react/features/base/participants/reducer.js +++ b/react/features/base/participants/reducer.js @@ -183,7 +183,7 @@ function _participantJoined({ participant }) { connectionStatus, dominantSpeaker, email, - isBot, + isFakeParticipant, local, name, pinned, @@ -217,7 +217,7 @@ function _participantJoined({ participant }) { dominantSpeaker: dominantSpeaker || false, email, id, - isBot, + isFakeParticipant, local: local || false, name, pinned: pinned || false,