Bladeren bron

fix(AOT): participant selection.

j8
Hristo Terezov 3 jaren geleden
bovenliggende
commit
c5438ecd0c
1 gewijzigde bestanden met toevoegingen van 2 en 9 verwijderingen
  1. 2
    9
      react/features/external-api/subscriber.js

+ 2
- 9
react/features/external-api/subscriber.js Bestand weergeven

@@ -1,9 +1,7 @@
1 1
 // @flow
2 2
 
3
-import { MEDIA_TYPE, VIDEO_TYPE } from '../base/media';
4 3
 import { getLocalParticipant } from '../base/participants';
5 4
 import { StateListenerRegistry } from '../base/redux';
6
-import { getTrackByMediaTypeAndParticipant } from '../base/tracks';
7 5
 import { appendSuffix } from '../display-name';
8 6
 import { shouldDisplayTileView } from '../video-layout';
9 7
 
@@ -45,12 +43,7 @@ StateListenerRegistry.register(
45 43
  */
46 44
 StateListenerRegistry.register(
47 45
     /* selector */ state => state['features/large-video'].participantId,
48
-    /* listener */ (participantId, store) => {
49
-        const videoTrack = getTrackByMediaTypeAndParticipant(
50
-            store.getState()['features/base/tracks'], MEDIA_TYPE.VIDEO, participantId);
51
-
52
-        if (videoTrack && videoTrack.videoType === VIDEO_TYPE.CAMERA) {
53
-            APP.API.notifyOnStageParticipantChanged(participantId);
54
-        }
46
+    /* listener */ participantId => {
47
+        APP.API.notifyOnStageParticipantChanged(participantId);
55 48
     }
56 49
 );

Laden…
Annuleren
Opslaan