Does not reload the page when "focus left MUC" event is generated after we have left the MUC intentionally.

pull/211/head 292
paweldomas 10 years ago
parent 8068d4e810
commit 4c95921b06
  1. 4
      moderator.js

@ -1,5 +1,5 @@
/* global $, $iq, config, connection, Etherpad, hangUp, messageHandler,
roomName, Strophe, Toolbar, Util, VideoLayout */
roomName, sessionTerminated, Strophe, Toolbar, Util, VideoLayout */
/**
* Contains logic responsible for enabling/disabling functionality available
* only to moderator users.
@ -55,7 +55,7 @@ var Moderator = (function (my) {
function (event, jid) {
console.info("Someone left is it focus ? " + jid);
var resource = Strophe.getResourceFromJid(jid);
if (resource === 'focus') {
if (resource === 'focus' && !sessionTerminated) {
console.info(
"Focus has left the room - leaving conference");
//hangUp();

Loading…
Cancel
Save