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
// ],
// 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.

View File

@ -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',

View File

@ -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));
}
});