From 2eedc2945d39f4a003014bfb2e2512ffecf285f1 Mon Sep 17 00:00:00 2001 From: Tudor-Ovidiu Avram Date: Tue, 15 Jun 2021 16:09:01 +0300 Subject: [PATCH] fix(api) invert filmstrip autohide flag --- config.js | 4 ++-- react/features/base/config/configWhitelist.js | 2 +- react/features/filmstrip/subscriber.web.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config.js b/config.js index 9449dbcec..3b042fb50 100644 --- a/config.js +++ b/config.js @@ -860,8 +860,8 @@ var config = { // 'transcribing.failedToStart' // shown when transcribing fails to start // ], - // Automatically hides the filmstrip when screen width is under a certain threshold - autohideFilmstrip: true, + // Prevent the filmstrip from autohiding when screen width is under a certain threshold + // disableFilmstripAutohiding: false, // Allow all above example options to include a trailing comma and // prevent fear when commenting out the last value. diff --git a/react/features/base/config/configWhitelist.js b/react/features/base/config/configWhitelist.js index ddef03739..f2bffdecf 100644 --- a/react/features/base/config/configWhitelist.js +++ b/react/features/base/config/configWhitelist.js @@ -16,7 +16,6 @@ export default [ 'analytics.disabled', 'audioLevelsInterval', 'audioQuality', - 'autohideFilmstrip', 'apiLogLevels', 'avgRtpStatsN', 'backgroundAlpha', @@ -83,6 +82,7 @@ export default [ 'disableAP', 'disableAudioLevels', 'disableDeepLinking', + 'disableFilmstripAutohiding', 'disableInitialGUM', 'disableH264', 'disableHPF', diff --git a/react/features/filmstrip/subscriber.web.js b/react/features/filmstrip/subscriber.web.js index 8ad1e2dea..cb3ee30c3 100644 --- a/react/features/filmstrip/subscriber.web.js +++ b/react/features/filmstrip/subscriber.web.js @@ -122,9 +122,9 @@ StateListenerRegistry.register( /* selector */ state => state['features/base/responsive-ui'].clientWidth < ASPECT_RATIO_BREAKPOINT, /* listener */ (widthBelowThreshold, store) => { const state = store.getState(); - const { autohideFilmstrip } = state['features/base/config']; + const { disableFilmstripAutohiding } = state['features/base/config']; - if (autohideFilmstrip) { + if (!disableFilmstripAutohiding) { store.dispatch(setFilmstripVisible(!widthBelowThreshold)); } });