From 0ca9389e4bd3f6b2eab8c6fe8f4fddd6d823e0b5 Mon Sep 17 00:00:00 2001 From: Boris Grozev Date: Mon, 7 Nov 2016 20:39:28 -0600 Subject: [PATCH] cleanup: Simplify code. --- modules/UI/videolayout/VideoLayout.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js index a38a4b2ca..5458b76ff 100644 --- a/modules/UI/videolayout/VideoLayout.js +++ b/modules/UI/videolayout/VideoLayout.js @@ -406,13 +406,11 @@ var VideoLayout = { addRemoteVideoContainer (id, remoteVideo) { remoteVideos[id] = remoteVideo; - let videoType = VideoLayout.getRemoteVideoType(id); - if (!videoType) { + if (!remoteVideo.getVideoType()) { // make video type the default one (camera) // FIXME container type is not a video type - videoType = VIDEO_CONTAINER_TYPE; + remoteVideo.setVideoType(VIDEO_CONTAINER_TYPE); } - remoteVideo.setVideoType(videoType); // In case this is not currently in the last n we don't show it. if (localLastNCount && localLastNCount > 0 &&