From d82d4cbed9d79b7520f5d97add3bfaa9be0a9a66 Mon Sep 17 00:00:00 2001 From: damencho Date: Fri, 18 Mar 2016 17:44:32 -0500 Subject: [PATCH] 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 --- modules/UI/UI.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/UI/UI.js b/modules/UI/UI.js index fcd39c4fc..347776d40 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); }; /**