Merge pull request #9395 from jitsi/tavram/invert-flag

fix(api) invert filmstrip autohide flag
This commit is contained in:
Avram Tudor 2021-06-15 16:25:48 +03:00 committed by GitHub
commit 34bc3c9533
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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));
}
});