Merge pull request #553 from damencho/fix-replacing-pinned

Fixes and issue where: if we receive dominant speaker event just befo…
This commit is contained in:
yanas 2016-03-24 17:43:18 -05:00
commit 9b09e61877
1 changed files with 1 additions and 1 deletions

View File

@ -384,7 +384,7 @@ var VideoLayout = {
!currentDominantSpeaker &&
this.isLargeContainerTypeVisible(VIDEO_CONTAINER_TYPE)) ||
pinnedId === resourceJid ||
(resourceJid &&
(!pinnedId && resourceJid &&
currentDominantSpeaker === resourceJid)) {
this.updateLargeVideo(resourceJid, true);
}