fix(filmstrip) prevent duplicated participants
This commit is contained in:
parent
2938d1f2dc
commit
4bb1697115
|
@ -25,7 +25,7 @@ export function updateRemoteParticipants(store: Object, participantId: ?number)
|
||||||
const { remoteParticipants } = state['features/filmstrip'];
|
const { remoteParticipants } = state['features/filmstrip'];
|
||||||
|
|
||||||
reorderedParticipants = [ ...remoteParticipants, participantId ];
|
reorderedParticipants = [ ...remoteParticipants, participantId ];
|
||||||
store.dispatch(setRemoteParticipants(reorderedParticipants));
|
store.dispatch(setRemoteParticipants(Array.from(new Set(reorderedParticipants))));
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
@ -92,7 +92,7 @@ export function updateRemoteParticipants(store: Object, participantId: ?number)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
store.dispatch(setRemoteParticipants(reorderedParticipants));
|
store.dispatch(setRemoteParticipants(Array.from(new Set(reorderedParticipants))));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue