瀏覽代碼

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

master
paweldomas 11 年之前
父節點
當前提交
4c95921b06
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      moderator.js

+ 2
- 2
moderator.js 查看文件

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

Loading…
取消
儲存