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:
commit
fbb5f9b6c1
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue