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
Fixes issue with missing avatar for Jigasi user. Fixes issue with avatar not being displayed when user has no video. Removed duplicated logic for checking video muted status(removed from LargeVideo which exists in SmallVideo).
paweldomas2ffe178456e9
diff --git a/modules/UI/avatar/Avatar.js b/modules/UI/avatar/Avatar.jsindex d51a92c372..2f51f0f72e 100644--- a/modules/UI/avatar/Avatar.js+++ b/modules/UI/avatar/Avatar.js@@ -52,8 +52,9 @@ var Avatar = {}var id = users[jid];if (!id) {- console.warn("No avatar stored yet for " + jid);- return null;+ console.warn(+ "No avatar stored yet for " + jid + " - using JID as ID");+ id = jid;}return 'https://www.gravatar.com/avatar/' +MD5.hexdigest(id.trim().toLowerCase()) +diff --git a/modules/UI/videolayout/LargeVideo.js b/modules/UI/videolayout/LargeVideo.jsindex c45e1f1cdc..e4124d4698 100644--- a/modules/UI/videolayout/LargeVideo.js+++ b/modules/UI/videolayout/LargeVideo.js@@ -224,20 +224,9 @@ function updateActiveSpeakerAvatarSrc() {var url = Avatar.getActiveSpeakerUrl(jid);if (avatar.src === url)return;- var isMuted = null;- if (!currentSmallVideo.isLocal &&- !LargeVideo.VideoLayout.isInLastN(currentSmallVideo.getResourceJid())) {- isMuted = true;- }- else- {- isMuted = APP.RTC.isVideoMuted(jid);- }-- if (jid && isMuted !== null) {+ if (jid) {avatar.src = url;- $("#largeVideo").css("visibility", isMuted ? "hidden" : "visible");- currentSmallVideo.showAvatar(isMuted);+ currentSmallVideo.showAvatar();}}diff --git a/modules/UI/videolayout/SmallVideo.js b/modules/UI/videolayout/SmallVideo.jsindex cbe2d619a4..319d59d94f 100644--- a/modules/UI/videolayout/SmallVideo.js+++ b/modules/UI/videolayout/SmallVideo.js@@ -325,7 +325,9 @@ SmallVideo.prototype.showAvatar = function (show) {}else{- show = APP.RTC.isVideoMuted(this.peerJid);+ // We want to show the avatar when the video is muted or not exists+ // that is when 'true' or 'null' is returned+ show = APP.RTC.isVideoMuted(this.peerJid) !== false;}}diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.jsindex e165b99a22..8fb2cd1de4 100644--- a/modules/UI/videolayout/VideoLayout.js+++ b/modules/UI/videolayout/VideoLayout.js@@ -864,9 +864,10 @@ var VideoLayout = (function (my) {if(!isVisible && focusedVideoResourceJid){var smallVideo = VideoLayout.getSmallVideo(focusedVideoResourceJid);- if(smallVideo)+ if(smallVideo) {smallVideo.focus(false);- smallVideo.showAvatar();+ smallVideo.showAvatar();+ }focusedVideoResourceJid = null;}};