|
@@ -38,7 +38,6 @@ MiddlewareRegistry.register(store => next => action => {
|
38
|
38
|
|
39
|
39
|
break;
|
40
|
40
|
}
|
41
|
|
- case CONFERENCE_JOINED:
|
42
|
41
|
case PARTICIPANT_JOINED:
|
43
|
42
|
case PARTICIPANT_LEFT:
|
44
|
43
|
case PIN_PARTICIPANT:
|
|
@@ -47,6 +46,13 @@ MiddlewareRegistry.register(store => next => action => {
|
47
|
46
|
store.dispatch(selectParticipantInLargeVideo());
|
48
|
47
|
break;
|
49
|
48
|
|
|
49
|
+ case CONFERENCE_JOINED:
|
|
50
|
+ // Ensure a participant is selected on conference join. This addresses
|
|
51
|
+ // the case where video tracks were received before CONFERENCE_JOINED
|
|
52
|
+ // fired; without the conference selection may not happen.
|
|
53
|
+ store.dispatch(selectParticipant());
|
|
54
|
+ break;
|
|
55
|
+
|
50
|
56
|
case TRACK_UPDATED:
|
51
|
57
|
// In order to minimize re-calculations, we need to select participant
|
52
|
58
|
// only if the videoType of the current participant rendered in
|