Merge pull request #361 from bickelj/master

Use member.isFocus to decide whether a given member is the focus user
This commit is contained in:
damencho 2015-11-12 10:37:35 -06:00
commit fbb5f9b6c1
1 changed files with 5 additions and 5 deletions

View File

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