mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
fix(api) invert filmstrip autohide flag
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user