Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(large-video): do not reselect video on self dominant speaker
Leonard Kimc89791069b99
diff --git a/react/features/large-video/middleware.js b/react/features/large-video/middleware.jsindex 7840e2cee7..60115dbe12 100644--- a/react/features/large-video/middleware.js+++ b/react/features/large-video/middleware.js@@ -4,7 +4,8 @@ import {DOMINANT_SPEAKER_CHANGED,PARTICIPANT_JOINED,PARTICIPANT_LEFT,- PIN_PARTICIPANT+ PIN_PARTICIPANT,+ getLocalParticipant} from '../base/participants';import { MiddlewareRegistry } from '../base/redux';import {@@ -27,7 +28,16 @@ MiddlewareRegistry.register(store => next => action => {const result = next(action);switch (action.type) {- case DOMINANT_SPEAKER_CHANGED:+ case DOMINANT_SPEAKER_CHANGED: {+ const localParticipant = getLocalParticipant(store.getState());++ if (localParticipant && localParticipant.id !== action.participant.id) {+ store.dispatch(selectParticipantInLargeVideo());+ }++ break;+ }+case PARTICIPANT_JOINED:case PARTICIPANT_LEFT:case PIN_PARTICIPANT: