Use member.isFocus to decide whether a given member is the conference focus user.

This commit is contained in:
Jesse Bickel 2015-09-25 08:49:19 -05:00
parent fd954580b7
commit 806cacb755
1 changed files with 5 additions and 5 deletions

View File

@ -339,14 +339,14 @@ var VideoLayout = (function (my) {
Object.keys(members).forEach(function (jid) {
if (Strophe.getResourceFromJid(jid) === 'focus') {
var resourceJid = Strophe.getResourceFromJid(jid);
var member = members[jid];
if (member.isFocus) {
// Skip server side focus
return;
}
var resourceJid = Strophe.getResourceFromJid(jid);
var member = members[jid];
if (member.role === 'moderator') {
remoteVideos[resourceJid].removeRemoteVideoMenu();
remoteVideos[resourceJid].createModeratorIndicatorElement();
@ -1008,4 +1008,4 @@ var VideoLayout = (function (my) {
return my;
}(VideoLayout || {}));
module.exports = VideoLayout;
module.exports = VideoLayout;