From 4c95921b0628a4b399b4fedcca48e8e11ea01b6d Mon Sep 17 00:00:00 2001 From: paweldomas Date: Thu, 11 Dec 2014 19:14:46 +0100 Subject: [PATCH] Does not reload the page when "focus left MUC" event is generated after we have left the MUC intentionally. --- moderator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moderator.js b/moderator.js index 13c8392f6..9796ce91e 100644 --- a/moderator.js +++ b/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();