소스 검색

declare namespace in relevant plugin

JC Brand 9 년 전
부모
커밋
9d9f64b2c3
2개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 0 3
      src/converse-core.js
  2. 1 0
      src/converse-muc.js

+ 0 - 3
src/converse-core.js

@@ -1615,12 +1615,9 @@
                  *
                  * See: http://xmpp.org/extensions/xep-0030.html#info
                  */
-                // FIXME: should go into MUC
-                converse.connection.disco.addFeature('jabber:x:conference');
                 converse.connection.disco.addFeature(Strophe.NS.BOSH);
                 converse.connection.disco.addFeature(Strophe.NS.CHATSTATES);
                 converse.connection.disco.addFeature(Strophe.NS.DISCO_INFO);
-                // FIXME: should go into Roster view plugin?
                 converse.connection.disco.addFeature(Strophe.NS.ROSTERX); // Limited support
                 if (converse.use_vcards) {
                     converse.connection.disco.addFeature(Strophe.NS.VCARD);

+ 1 - 0
src/converse-muc.js

@@ -66,6 +66,7 @@
             Features: {
                 addClientFeatures: function () {
                     this._super.addClientFeatures.apply(this, arguments);
+                    converse.connection.disco.addFeature('jabber:x:conference'); // Invites
                     if (this.allow_muc) {
                         this.connection.disco.addFeature(Strophe.NS.MUC);
                     }