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

This commit is contained in:
paweldomas 2014-12-11 19:14:46 +01:00
parent 8068d4e810
commit 4c95921b06
1 changed files with 2 additions and 2 deletions

View File

@ -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();