fix(filmstrip) Fix pinning (#11889)
This commit is contained in:
parent
cb712eb4ab
commit
5dbb17bc81
|
@ -72,6 +72,7 @@ StateListenerRegistry.register(
|
||||||
/* listener */ ({ layout }, store) => {
|
/* listener */ ({ layout }, store) => {
|
||||||
switch (layout) {
|
switch (layout) {
|
||||||
case LAYOUTS.TILE_VIEW:
|
case LAYOUTS.TILE_VIEW:
|
||||||
|
store.dispatch(clearStageParticipants());
|
||||||
store.dispatch(pinParticipant(null));
|
store.dispatch(pinParticipant(null));
|
||||||
store.dispatch(setTileViewDimensions());
|
store.dispatch(setTileViewDimensions());
|
||||||
break;
|
break;
|
||||||
|
@ -196,9 +197,9 @@ StateListenerRegistry.register(
|
||||||
* there's just one).
|
* there's just one).
|
||||||
*/
|
*/
|
||||||
StateListenerRegistry.register(
|
StateListenerRegistry.register(
|
||||||
/* selector */ state => state['features/filmstrip'].activeParticipants.length,
|
/* selector */ state => state['features/filmstrip'].activeParticipants,
|
||||||
/* listener */(length, store) => {
|
/* listener */(activeParticipants, store) => {
|
||||||
if (length <= 1) {
|
if (activeParticipants.length <= 1) {
|
||||||
store.dispatch(selectParticipantInLargeVideo());
|
store.dispatch(selectParticipantInLargeVideo());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue