Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(lastn) Update lastN on virtual screenshare updates. Fixes https://github.com/jitsi/jitsi-meet/issues/13448.

Jaya Allamsetty3ae18be21f44
diff --git a/react/features/base/lastn/middleware.ts b/react/features/base/lastn/middleware.ts
index 83ac8574e6..aae1190eda 100644
--- a/react/features/base/lastn/middleware.ts
+++ b/react/features/base/lastn/middleware.ts
@@ -3,7 +3,10 @@ import debounce from 'lodash/debounce';
import { IStore } from '../../app/types';
import { SET_FILMSTRIP_ENABLED } from '../../filmstrip/actionTypes';
import { APP_STATE_CHANGED } from '../../mobile/background/actionTypes';
-import { SET_CAR_MODE } from '../../video-layout/actionTypes';
+import {
+ SET_CAR_MODE,
+ VIRTUAL_SCREENSHARE_REMOTE_PARTICIPANTS_UPDATED
+} from '../../video-layout/actionTypes';
import { SET_AUDIO_ONLY } from '../audio-only/actionTypes';
import { CONFERENCE_JOINED } from '../conference/actionTypes';
import { getParticipantById } from '../participants/functions';
@@ -81,6 +84,7 @@ MiddlewareRegistry.register(store => next => action => {
case SET_AUDIO_ONLY:
case SET_CAR_MODE:
case SET_FILMSTRIP_ENABLED:
+ case VIRTUAL_SCREENSHARE_REMOTE_PARTICIPANTS_UPDATED:
_updateLastN(store);
break;
}