fix after review
This commit is contained in:
parent
0b46b8bdf2
commit
b7c4879b8b
|
@ -249,11 +249,15 @@ function initCommands() {
|
|||
|
||||
// if id not provided, unpin everybody.
|
||||
if (!id) {
|
||||
const pinnedParticipants = getPinnedActiveParticipants(state);
|
||||
if (isStageFilmstripAvailable(state)) {
|
||||
const pinnedParticipants = getPinnedActiveParticipants(state);
|
||||
|
||||
pinnedParticipants?.forEach(p => {
|
||||
APP.store.dispatch(togglePinStageParticipant(p.participantId));
|
||||
});
|
||||
pinnedParticipants?.forEach(p => {
|
||||
APP.store.dispatch(togglePinStageParticipant(p.participantId));
|
||||
});
|
||||
} else {
|
||||
APP.store.dispatch(pinParticipant());
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue