Skip to content

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

Update variable name to pinnedId.

damencho27607e8754e3
diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js
index af7db05db1..bfa8449549 100644
--- a/modules/UI/videolayout/VideoLayout.js
+++ b/modules/UI/videolayout/VideoLayout.js
@@ -215,7 +215,6 @@ var VideoLayout = {
newId = currentDominantSpeaker;
else // Otherwise select last visible video
newId = this.electLastVisibleVideo();
- }
this.updateLargeVideo(newId);
},
@@ -982,9 +981,8 @@ var VideoLayout = {
// (pinned remote video) use its video type,
// if not then use default type - large video
if (!show) {
- if(focusedVideoResourceJid)
- containerTypeToShow = this.getRemoteVideoType(
- focusedVideoResourceJid);
+ if(pinnedId)
+ containerTypeToShow = this.getRemoteVideoType(pinnedId);
else
containerTypeToShow = VIDEO_CONTAINER_TYPE;
}