Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(tile-view): exit tile view on pin (#3430)
virtuacoplennye63cd8c81bce
diff --git a/modules/UI/shared_video/SharedVideoThumb.js b/modules/UI/shared_video/SharedVideoThumb.jsindex 50708559dc..4f8f4405a1 100644--- a/modules/UI/shared_video/SharedVideoThumb.js+++ b/modules/UI/shared_video/SharedVideoThumb.js@@ -1,5 +1,4 @@-/* global $, APP */-import { shouldDisplayTileView } from '../../../react/features/video-layout';+/* global $ */import SmallVideo from '../videolayout/SmallVideo';@@ -66,9 +65,7 @@ SharedVideoThumb.prototype.createContainer = function(spanId) {* The thumb click handler.*/SharedVideoThumb.prototype.videoClick = function() {- if (!shouldDisplayTileView(APP.store.getState())) {- this._togglePin();- }+ this._togglePin();};/**diff --git a/modules/UI/videolayout/LocalVideo.js b/modules/UI/videolayout/LocalVideo.jsindex 20043daa7a..fb4058ca9c 100644--- a/modules/UI/videolayout/LocalVideo.js+++ b/modules/UI/videolayout/LocalVideo.js@@ -275,9 +275,7 @@ LocalVideo.prototype._onContainerClick = function(event) {= $source.parents('.displayNameContainer').length > 0;const clickedOnPopover = $source.parents('.popover').length > 0|| classList.contains('popover');- const ignoreClick = clickedOnDisplayName- || clickedOnPopover- || shouldDisplayTileView(APP.store.getState());+ const ignoreClick = clickedOnDisplayName || clickedOnPopover;if (event.stopPropagation && !ignoreClick) {event.stopPropagation();diff --git a/modules/UI/videolayout/RemoteVideo.js b/modules/UI/videolayout/RemoteVideo.jsindex dd43de6d63..1ec9502732 100644--- a/modules/UI/videolayout/RemoteVideo.js+++ b/modules/UI/videolayout/RemoteVideo.js@@ -627,8 +627,7 @@ RemoteVideo.prototype._onContainerClick = function(event) {const { classList } = event.target;const ignoreClick = $source.parents('.popover').length > 0- || classList.contains('popover')- || shouldDisplayTileView(APP.store.getState());+ || classList.contains('popover');if (!ignoreClick) {this._togglePin();diff --git a/modules/UI/videolayout/SmallVideo.js b/modules/UI/videolayout/SmallVideo.jsindex 70942aa113..7a3283ed90 100644--- a/modules/UI/videolayout/SmallVideo.js+++ b/modules/UI/videolayout/SmallVideo.js@@ -30,6 +30,7 @@ import {import {LAYOUTS,getCurrentLayout,+ setTileView,shouldDisplayTileView} from '../../../react/features/video-layout';/* eslint-enable no-unused-vars */diff --git a/react/features/video-layout/functions.js b/react/features/video-layout/functions.jsindex 42f93856f4..9225add820 100644--- a/react/features/video-layout/functions.js+++ b/react/features/video-layout/functions.js@@ -1,6 +1,7 @@// @flowimport { LAYOUTS } from './constants';+import { getPinnedParticipant } from '../base/participants';declare var interfaceConfig: Object;@@ -80,5 +81,6 @@ export function shouldDisplayTileView(state: Object = {}) {// should never be enabled for filmstrip only mode.&& (typeof interfaceConfig === 'undefined'|| !interfaceConfig.filmStripOnly)+ && !getPinnedParticipant(state));}