浏览代码

Removes a piece of code which doesn't make any sense.

Does not fire an "IncompatibleVersionsEvent" in case the
reported XMPP server version changes.
master
Boris Grozev 9 年前
父节点
当前提交
cde0b16d31
共有 1 个文件被更改,包括 2 次插入8 次删除
  1. 2
    8
      modules/version/ComponentsVersions.js

+ 2
- 8
modules/version/ComponentsVersions.js 查看文件

@@ -12,7 +12,7 @@ ComponentsVersions.FOCUS_COMPONENT = "focus";
12 12
  */
13 13
 ComponentsVersions.VIDEOBRIDGE_COMPONENT = "videobridge";
14 14
 /**
15
- * The contant for the name of the XMPP server component.
15
+ * The constant for the name of the XMPP server component.
16 16
  * @type {string}
17 17
  */
18 18
 ComponentsVersions.XMPP_SERVER_COMPONENT = "xmpp";
@@ -35,7 +35,7 @@ function ComponentsVersions(conference) {
35 35
 }
36 36
 
37 37
 ComponentsVersions.prototype.processPresence =
38
-function(node, mucResource, mucJid) {
38
+    function(node, mucResource, mucJid) {
39 39
 
40 40
     if (node.attributes.xmlns !== 'http://jitsi.org/jitmeet') {
41 41
         logger.warn("Ignored presence versions node - invalid xmlns", node);
@@ -63,12 +63,6 @@ function(node, mucResource, mucJid) {
63 63
 
64 64
         var version = item.value;
65 65
         if (this.versions[componentName] !== version) {
66
-            if(this.versions[componentName] &&
67
-                componentName !== ComponentsVersions.FOCUS_COMPONENT &&
68
-                componentName !== ComponentsVersions.VIDEOBRIDGE_COMPONENT) {
69
-                //version is changed during the call
70
-                this.conference._fireIncompatibleVersionsEvent();
71
-            }
72 66
             this.versions[componentName] = version;
73 67
             logger.info("Got " + componentName + " version: " + version);
74 68
 

正在加载...
取消
保存