Browse Source

fix(api) invert filmstrip autohide flag

master
Tudor-Ovidiu Avram 3 years ago
parent
commit
2eedc2945d

+ 2
- 2
config.js View File

860
     //     'transcribing.failedToStart' // shown when transcribing fails to start
860
     //     'transcribing.failedToStart' // shown when transcribing fails to start
861
     // ],
861
     // ],
862
 
862
 
863
-    // Automatically hides the filmstrip when screen width is under a certain threshold
864
-    autohideFilmstrip: true,
863
+    // Prevent the filmstrip from autohiding when screen width is under a certain threshold
864
+    // disableFilmstripAutohiding: false,
865
 
865
 
866
     // Allow all above example options to include a trailing comma and
866
     // Allow all above example options to include a trailing comma and
867
     // prevent fear when commenting out the last value.
867
     // prevent fear when commenting out the last value.

+ 1
- 1
react/features/base/config/configWhitelist.js View File

16
     'analytics.disabled',
16
     'analytics.disabled',
17
     'audioLevelsInterval',
17
     'audioLevelsInterval',
18
     'audioQuality',
18
     'audioQuality',
19
-    'autohideFilmstrip',
20
     'apiLogLevels',
19
     'apiLogLevels',
21
     'avgRtpStatsN',
20
     'avgRtpStatsN',
22
     'backgroundAlpha',
21
     'backgroundAlpha',
83
     'disableAP',
82
     'disableAP',
84
     'disableAudioLevels',
83
     'disableAudioLevels',
85
     'disableDeepLinking',
84
     'disableDeepLinking',
85
+    'disableFilmstripAutohiding',
86
     'disableInitialGUM',
86
     'disableInitialGUM',
87
     'disableH264',
87
     'disableH264',
88
     'disableHPF',
88
     'disableHPF',

+ 2
- 2
react/features/filmstrip/subscriber.web.js View File

122
     /* selector */ state => state['features/base/responsive-ui'].clientWidth < ASPECT_RATIO_BREAKPOINT,
122
     /* selector */ state => state['features/base/responsive-ui'].clientWidth < ASPECT_RATIO_BREAKPOINT,
123
     /* listener */ (widthBelowThreshold, store) => {
123
     /* listener */ (widthBelowThreshold, store) => {
124
         const state = store.getState();
124
         const state = store.getState();
125
-        const { autohideFilmstrip } = state['features/base/config'];
125
+        const { disableFilmstripAutohiding } = state['features/base/config'];
126
 
126
 
127
-        if (autohideFilmstrip) {
127
+        if (!disableFilmstripAutohiding) {
128
             store.dispatch(setFilmstripVisible(!widthBelowThreshold));
128
             store.dispatch(setFilmstripVisible(!widthBelowThreshold));
129
         }
129
         }
130
     });
130
     });

Loading…
Cancel
Save