From c5438ecd0c6c9e13510eec8cf08ff08e6a58bb80 Mon Sep 17 00:00:00 2001 From: Hristo Terezov Date: Thu, 15 Jul 2021 17:13:46 -0500 Subject: [PATCH] fix(AOT): participant selection. --- react/features/external-api/subscriber.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/react/features/external-api/subscriber.js b/react/features/external-api/subscriber.js index 177d0d0d5..65dce2a22 100644 --- a/react/features/external-api/subscriber.js +++ b/react/features/external-api/subscriber.js @@ -1,9 +1,7 @@ // @flow -import { MEDIA_TYPE, VIDEO_TYPE } from '../base/media'; import { getLocalParticipant } from '../base/participants'; import { StateListenerRegistry } from '../base/redux'; -import { getTrackByMediaTypeAndParticipant } from '../base/tracks'; import { appendSuffix } from '../display-name'; import { shouldDisplayTileView } from '../video-layout'; @@ -45,12 +43,7 @@ StateListenerRegistry.register( */ StateListenerRegistry.register( /* selector */ state => state['features/large-video'].participantId, - /* listener */ (participantId, store) => { - const videoTrack = getTrackByMediaTypeAndParticipant( - store.getState()['features/base/tracks'], MEDIA_TYPE.VIDEO, participantId); - - if (videoTrack && videoTrack.videoType === VIDEO_TYPE.CAMERA) { - APP.API.notifyOnStageParticipantChanged(participantId); - } + /* listener */ participantId => { + APP.API.notifyOnStageParticipantChanged(participantId); } );