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
fix(Avatar): Avatar to return the local avatar when jid is null
hristoterezov84fd0531f687
diff --git a/modules/UI/avatar/Avatar.js b/modules/UI/avatar/Avatar.jsindex 3d9fc3a31a..1cac97da0d 100644--- a/modules/UI/avatar/Avatar.js+++ b/modules/UI/avatar/Avatar.js@@ -1,4 +1,4 @@-/* global MD5, config, interfaceConfig */+/* global MD5, config, interfaceConfig, APP */let users = {};@@ -10,6 +10,12 @@ export default {* @param val {string} value to be set*/_setUserProp: function (id, prop, val) {+ // FIXME: Fixes the issue with not be able to return avatar for the+ // local user when the conference has been left. Maybe there is beter+ // way to solve it.+ if(APP.conference.isLocalId(id)) {+ id = "local";+ }if(!val || (users[id] && users[id][prop] === val))return;if(!users[id])@@ -56,9 +62,8 @@ export default {return 'images/avatar2.png';}- if (!userId) {- console.error("Get avatar - id is undefined");- return null;+ if (!userId || APP.conference.isLocalId(userId)) {+ userId = "local";}let avatarId = null;