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(screenshare): properly gate autopin behavior behind flag check

Leonard Kimc34f9cf23313
diff --git a/react/features/video-layout/subscriber.js b/react/features/video-layout/subscriber.js
index a7536b9c79..2075e7958d 100644
--- a/react/features/video-layout/subscriber.js
+++ b/react/features/video-layout/subscriber.js
@@ -46,7 +46,7 @@ StateListenerRegistry.register(
/* selector */ state => state['features/base/tracks'],
/* listener */ (tracks, store) => {
if (typeof interfaceConfig !== 'object'
- && !interfaceConfig.AUTO_PIN_LATEST_SCREEN_SHARE) {
+ || !interfaceConfig.AUTO_PIN_LATEST_SCREEN_SHARE) {
return;
}