From fcb3ca836fa36a69266af4d371e99a9047eb576c Mon Sep 17 00:00:00 2001 From: Leonard Kim Date: Tue, 14 Nov 2017 11:08:18 -0800 Subject: [PATCH] fix(large-video): return to dominant speaker without video Always switch to the dominant speaker after unpinning instead of conditionally checking if the current dominant speaker has video. --- modules/UI/videolayout/VideoLayout.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js index e5f64d07a..2a53071b2 100644 --- a/modules/UI/videolayout/VideoLayout.js +++ b/modules/UI/videolayout/VideoLayout.js @@ -410,9 +410,7 @@ const VideoLayout = { // Enable the currently set dominant speaker. if (currentDominantSpeaker) { - if (smallVideo && smallVideo.hasVideo()) { - this.updateLargeVideo(currentDominantSpeaker); - } + this.updateLargeVideo(currentDominantSpeaker); } else { // if there is no currentDominantSpeaker, it can also be // that local participant is the dominant speaker