|
|
@@ -5,6 +5,7 @@ import UIEvents from '../../../service/UI/UIEvents';
|
|
5
|
5
|
|
|
6
|
6
|
import {
|
|
7
|
7
|
DOMINANT_SPEAKER_CHANGED,
|
|
|
8
|
+ PARTICIPANT_UPDATED,
|
|
8
|
9
|
PIN_PARTICIPANT
|
|
9
|
10
|
} from '../base/participants';
|
|
10
|
11
|
import { MiddlewareRegistry } from '../base/redux';
|
|
|
@@ -26,6 +27,18 @@ MiddlewareRegistry.register(store => next => action => {
|
|
26
|
27
|
const result = next(action);
|
|
27
|
28
|
|
|
28
|
29
|
switch (action.type) {
|
|
|
30
|
+
|
|
|
31
|
+ case PARTICIPANT_UPDATED: {
|
|
|
32
|
+ // Look for actions that triggered a change to connectionStatus. This is
|
|
|
33
|
+ // done instead of changing the connection status change action to be
|
|
|
34
|
+ // explicit in order to minimize changes to other code.
|
|
|
35
|
+ if (typeof action.participant.connectionStatus !== 'undefined') {
|
|
|
36
|
+ VideoLayout.onParticipantConnectionStatusChanged(
|
|
|
37
|
+ action.participant.id);
|
|
|
38
|
+ }
|
|
|
39
|
+ break;
|
|
|
40
|
+ }
|
|
|
41
|
+
|
|
29
|
42
|
case DOMINANT_SPEAKER_CHANGED:
|
|
30
|
43
|
VideoLayout.onDominantSpeakerChanged(action.participant.id);
|
|
31
|
44
|
break;
|