Skip to content

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

Fixes few undefined errors on standby.

damencho96f013c549d6
diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js
index 51b3dafe55..1ffb70fe73 100644
--- a/modules/UI/videolayout/VideoLayout.js
+++ b/modules/UI/videolayout/VideoLayout.js
@@ -637,7 +637,7 @@ const VideoLayout = {
*/
onVideoMute(id, value) {
if (APP.conference.isLocalId(id)) {
- localVideoThumbnail.setVideoMutedView(value);
+ localVideoThumbnail && localVideoThumbnail.setVideoMutedView(value);
} else {
const remoteVideo = remoteVideos[id];
@@ -985,7 +985,7 @@ const VideoLayout = {
} else if (currentId) {
const currentSmallVideo = this.getSmallVideo(currentId);
- currentSmallVideo.updateView();
+ currentSmallVideo && currentSmallVideo.updateView();
}
},