fix(api) invert filmstrip autohide flag

This commit is contained in:
Tudor-Ovidiu Avram 2021-06-15 16:09:01 +03:00
parent 342dd4ceca
commit 2eedc2945d
3 changed files with 5 additions and 5 deletions

View File

@ -860,8 +860,8 @@ var config = {
// 'transcribing.failedToStart' // shown when transcribing fails to start // 'transcribing.failedToStart' // shown when transcribing fails to start
// ], // ],
// Automatically hides the filmstrip when screen width is under a certain threshold // Prevent the filmstrip from autohiding when screen width is under a certain threshold
autohideFilmstrip: true, // disableFilmstripAutohiding: false,
// Allow all above example options to include a trailing comma and // Allow all above example options to include a trailing comma and
// prevent fear when commenting out the last value. // prevent fear when commenting out the last value.

View File

@ -16,7 +16,6 @@ export default [
'analytics.disabled', 'analytics.disabled',
'audioLevelsInterval', 'audioLevelsInterval',
'audioQuality', 'audioQuality',
'autohideFilmstrip',
'apiLogLevels', 'apiLogLevels',
'avgRtpStatsN', 'avgRtpStatsN',
'backgroundAlpha', 'backgroundAlpha',
@ -83,6 +82,7 @@ export default [
'disableAP', 'disableAP',
'disableAudioLevels', 'disableAudioLevels',
'disableDeepLinking', 'disableDeepLinking',
'disableFilmstripAutohiding',
'disableInitialGUM', 'disableInitialGUM',
'disableH264', 'disableH264',
'disableHPF', 'disableHPF',

View File

@ -122,9 +122,9 @@ StateListenerRegistry.register(
/* selector */ state => state['features/base/responsive-ui'].clientWidth < ASPECT_RATIO_BREAKPOINT, /* selector */ state => state['features/base/responsive-ui'].clientWidth < ASPECT_RATIO_BREAKPOINT,
/* listener */ (widthBelowThreshold, store) => { /* listener */ (widthBelowThreshold, store) => {
const state = store.getState(); const state = store.getState();
const { autohideFilmstrip } = state['features/base/config']; const { disableFilmstripAutohiding } = state['features/base/config'];
if (autohideFilmstrip) { if (!disableFilmstripAutohiding) {
store.dispatch(setFilmstripVisible(!widthBelowThreshold)); store.dispatch(setFilmstripVisible(!widthBelowThreshold));
} }
}); });