From d48ef06ddb1f114d5b1b60b14a46f7397913482a Mon Sep 17 00:00:00 2001 From: damencho Date: Thu, 24 Mar 2016 17:10:29 -0500 Subject: [PATCH] Fixes and issue where: if we receive dominant speaker event just before the video start playing, this can override already pinned video. --- modules/UI/videolayout/VideoLayout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js index bfa844954..2ccf4bc70 100644 --- a/modules/UI/videolayout/VideoLayout.js +++ b/modules/UI/videolayout/VideoLayout.js @@ -384,7 +384,7 @@ var VideoLayout = { !currentDominantSpeaker && this.isLargeContainerTypeVisible(VIDEO_CONTAINER_TYPE)) || pinnedId === resourceJid || - (resourceJid && + (!pinnedId && resourceJid && currentDominantSpeaker === resourceJid)) { this.updateLargeVideo(resourceJid, true); }