From 260b610725fa86560c50d75bb2f6564e4617e20a Mon Sep 17 00:00:00 2001 From: paweldomas Date: Thu, 17 Sep 2015 18:31:26 +0200 Subject: [PATCH] Fixes issue with avatar not being displayed when user is in the lastN set, but has video muted. --- modules/UI/videolayout/RemoteVideo.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/UI/videolayout/RemoteVideo.js b/modules/UI/videolayout/RemoteVideo.js index 8ffff14d8a..c62784e7c8 100644 --- a/modules/UI/videolayout/RemoteVideo.js +++ b/modules/UI/videolayout/RemoteVideo.js @@ -268,8 +268,10 @@ RemoteVideo.prototype.showPeerContainer = function (state) { resizeThumbnails = true; $(this.container).show(); } - - this.showAvatar(state !== 'show'); + // Call showAvatar with undefined, so that we'll figure out if avatar + // should be displayed based on video muted status and whether or not + // it's in the lastN set + this.showAvatar(undefined); } else if ($(this.container).is(':visible') && isHide) {