Skip to content

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

Updates large video when user left and we are removing the shared video.

damencho9e7275acfb1b
diff --git a/modules/UI/shared_video/SharedVideo.js b/modules/UI/shared_video/SharedVideo.js
index 3812b55afa..edeeb70cba 100644
--- a/modules/UI/shared_video/SharedVideo.js
+++ b/modules/UI/shared_video/SharedVideo.js
@@ -380,6 +380,10 @@ SharedVideoThumb.prototype.videoClick = function () {
SharedVideoThumb.prototype.remove = function () {
console.log("Remove shared video thumb", this.id);
+ // Make sure that the large video is updated if are removing its
+ // corresponding small video.
+ this.VideoLayout.updateRemovedVideo(this.id);
+
// Remove whole container
if (this.container.parentNode) {
this.container.parentNode.removeChild(this.container);