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();
|
||||||
|
|
Loading…
Reference in New Issue