fix after review

This commit is contained in:
Horatiu Muresan 2023-02-16 17:38:03 +02:00
parent 0b46b8bdf2
commit b7c4879b8b
1 changed files with 8 additions and 4 deletions

View File

@ -249,11 +249,15 @@ function initCommands() {
// if id not provided, unpin everybody. // if id not provided, unpin everybody.
if (!id) { if (!id) {
const pinnedParticipants = getPinnedActiveParticipants(state); if (isStageFilmstripAvailable(state)) {
const pinnedParticipants = getPinnedActiveParticipants(state);
pinnedParticipants?.forEach(p => { pinnedParticipants?.forEach(p => {
APP.store.dispatch(togglePinStageParticipant(p.participantId)); APP.store.dispatch(togglePinStageParticipant(p.participantId));
}); });
} else {
APP.store.dispatch(pinParticipant());
}
return; return;
} }