Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Merge branch 'fix_ring_overlay'

Lyubomir Marinov137aace970a8
diff --cc modules/UI/videolayout/FilmStrip.js
index 762cea584a,1fce070022..6c944b78a3
--- a/modules/UI/videolayout/FilmStrip.js
+++ b/modules/UI/videolayout/FilmStrip.js
@@@ -114,30 -114,34 +114,34 @@@ const FilmStrip =
* of the film strip. If not specified, the visibility will be flipped
* (i.e. toggled); otherwise, the visibility will be set to the specified
* value.
- * @param {Boolean} sendAnalytics - if true analytics event will be send.
- * default: true.
++ * @param {Boolean} sendAnalytics - True to send an analytics event. The
++ * default value is true.
*
* Note:
* This method shouldn't be executed directly to hide the filmstrip.
* It's important to hide the filmstrip with UI.toggleFilmstrip in order
* to correctly resize the video area.
*/
- toggleFilmStrip(visible) {
- let isVisibleDefined = typeof visible === 'boolean';
+ toggleFilmStrip(visible, sendAnalytics = true) {
- let isVisibleDefined = typeof visible === 'boolean';
++ const isVisibleDefined = typeof visible === 'boolean';
if (!isVisibleDefined) {
visible = this.isFilmStripVisible();
} else if (this.isFilmStripVisible() === visible) {
return;
}
- JitsiMeetJS.analytics.sendEvent('toolbar.filmstrip.toggled');
- if(sendAnalytics) {
++ if (sendAnalytics) {
+ JitsiMeetJS.analytics.sendEvent('toolbar.filmstrip.toggled');
+ }
this.filmStrip.toggleClass("hidden");
-- if (!visible) {
-- this.showMenuDownIcon();
-- } else {
++ if (visible) {
this.showMenuUpIcon();
++ } else {
++ this.showMenuDownIcon();
}
// Emit/fire UIEvents.TOGGLED_FILM_STRIP.
-- var eventEmitter = this.eventEmitter;
++ const eventEmitter = this.eventEmitter;
if (eventEmitter) {
eventEmitter.emit(
UIEvents.TOGGLED_FILM_STRIP,
@@@ -372,9 -376,9 +376,7 @@@
* @param forceUpdate
* @returns {Promise}
*/
-- resizeThumbnails(local, remote,
-- animate = false, forceUpdate = false) {
--
++ resizeThumbnails(local, remote, animate = false, forceUpdate = false) {
return new Promise(resolve => {
let thumbs = this.getThumbs(!forceUpdate);
let promises = [];
@@@ -455,9 -459,9 +457,7 @@@
} else {
return { remoteThumbs, localThumb };
}
--
}
--
};
export default FilmStrip;