Преглед изворни кода

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

Loading…
Откажи
Сачувај