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(lastN): Do not override channelLastN value. If limitLastN values are specified and channelLastN < limitLastN, configure channelLastN on the conference.
Jaya Allamsettyfc694641dc46
diff --git a/react/features/base/lastn/middleware.js b/react/features/base/lastn/middleware.jsindex 4b0916b9c0..e746983a1a 100644--- a/react/features/base/lastn/middleware.js+++ b/react/features/base/lastn/middleware.js@@ -68,14 +68,13 @@ function _updateLastN({ getState }) {return;}- const defaultLastN = typeof config.channelLastN === 'undefined' ? -1 : config.channelLastN;- let lastN = defaultLastN;+ let lastN = typeof config.channelLastN === 'undefined' ? -1 : config.channelLastN;- // Apply last N limit based on the # of participants+ // Apply last N limit based on the # of participants and channelLastN settings.const limitedLastN = limitLastN(participantCount, lastNLimits);if (limitedLastN !== undefined) {- lastN = limitedLastN;+ lastN = lastN === -1 ? limitedLastN : Math.min(limitedLastN, lastN);}if (typeof appState !== 'undefined' && appState !== 'active') {