Renames isBot -> isFakeParticipant.
This commit is contained in:
parent
c65ccb0af5
commit
682169e44c
|
@ -305,7 +305,7 @@ export default class SharedVideoManager {
|
||||||
// JitsiMeetLogStorage.
|
// JitsiMeetLogStorage.
|
||||||
conference: APP.conference._room,
|
conference: APP.conference._room,
|
||||||
id: self.url,
|
id: self.url,
|
||||||
isBot: true,
|
isFakeParticipant: true,
|
||||||
name: 'YouTube'
|
name: 'YouTube'
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
|
@ -447,7 +447,7 @@ const VideoLayout = {
|
||||||
addRemoteParticipantContainer(participant) {
|
addRemoteParticipantContainer(participant) {
|
||||||
if (!participant || participant.local) {
|
if (!participant || participant.local) {
|
||||||
return;
|
return;
|
||||||
} else if (participant.isBot) {
|
} else if (participant.isFakeParticipant) {
|
||||||
const sharedVideoThumb = new SharedVideoThumb(
|
const sharedVideoThumb = new SharedVideoThumb(
|
||||||
participant,
|
participant,
|
||||||
SHARED_VIDEO_CONTAINER_TYPE,
|
SHARED_VIDEO_CONTAINER_TYPE,
|
||||||
|
|
|
@ -287,7 +287,7 @@ function _pinParticipant({ getState }, next, action) {
|
||||||
let pin;
|
let pin;
|
||||||
|
|
||||||
if (participantById) {
|
if (participantById) {
|
||||||
pin = !participantById.local && !participantById.isBot;
|
pin = !participantById.local && !participantById.isFakeParticipant;
|
||||||
} else {
|
} else {
|
||||||
const localParticipant = getLocalParticipant(participants);
|
const localParticipant = getLocalParticipant(participants);
|
||||||
|
|
||||||
|
|
|
@ -213,7 +213,7 @@ export function getParticipantPresenceStatus(
|
||||||
* @returns {Participant[]}
|
* @returns {Participant[]}
|
||||||
*/
|
*/
|
||||||
export function getParticipants(stateful: Object | Function) {
|
export function getParticipants(stateful: Object | Function) {
|
||||||
return _getAllParticipants(stateful).filter(p => !p.isBot);
|
return _getAllParticipants(stateful).filter(p => !p.isFakeParticipant);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -183,7 +183,7 @@ function _participantJoined({ participant }) {
|
||||||
connectionStatus,
|
connectionStatus,
|
||||||
dominantSpeaker,
|
dominantSpeaker,
|
||||||
email,
|
email,
|
||||||
isBot,
|
isFakeParticipant,
|
||||||
local,
|
local,
|
||||||
name,
|
name,
|
||||||
pinned,
|
pinned,
|
||||||
|
@ -217,7 +217,7 @@ function _participantJoined({ participant }) {
|
||||||
dominantSpeaker: dominantSpeaker || false,
|
dominantSpeaker: dominantSpeaker || false,
|
||||||
email,
|
email,
|
||||||
id,
|
id,
|
||||||
isBot,
|
isFakeParticipant,
|
||||||
local: local || false,
|
local: local || false,
|
||||||
name,
|
name,
|
||||||
pinned: pinned || false,
|
pinned: pinned || false,
|
||||||
|
|
Loading…
Reference in New Issue