Skip to content

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

Creates first the container before setting avatar, cause the avatar set will check the large video container type and type may be missing. Fixes error 'container of type undefined doesn't exist': > at LargeVideoManager.getContainer > at LargeVideoManager.get > at Object.isCurrentlyOnLarge > at Object.changeUserAvatar > at Object.UI.setUserAvatar > at Object.UI.addUser

damenchod82d4cbed9d7
diff --git a/modules/UI/UI.js b/modules/UI/UI.js
index fcd39c4fc5..347776d401 100644
--- a/modules/UI/UI.js
+++ b/modules/UI/UI.js
@@ -490,11 +490,11 @@ UI.addUser = function (id, displayName) {
config.startAudioMuted > APP.conference.membersCount)
UIUtil.playSoundNotification('userJoined');
- // Configure avatar
- UI.setUserAvatar(id);
-
// Add Peer's container
VideoLayout.addParticipantContainer(id);
+
+ // Configure avatar
+ UI.setUserAvatar(id);
};
/**