Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(AOT): participant selection.

Hristo Terezovc5438ecd0c6c
diff --git a/react/features/external-api/subscriber.js b/react/features/external-api/subscriber.js
index 177d0d0d58..65dce2a227 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);
}
);