Skip to content

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

fix(large-video): ensure switch to local video when all others leave (#1607)

virtuacoplennyd1ea29beeb02
diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js
index 29409e2863..e6038e1864 100644
--- a/modules/UI/videolayout/VideoLayout.js
+++ b/modules/UI/videolayout/VideoLayout.js
@@ -263,7 +263,9 @@ var VideoLayout = {
* otherwise elects new video, in this order.
*/
updateAfterThumbRemoved (id) {
- if (!this.isCurrentlyOnLarge(id)) {
+ // Always trigger an update if large video is empty.
+ if (!largeVideo
+ || (this.getLargeVideoID() && !this.isCurrentlyOnLarge(id))) {
return;
}