Browse Source

disco: Don't query for #items on conference components.

We don't need them at that time and we'll query when a chat room gets opened.
JC Brand 8 years ago
parent
commit
9084cdaa57
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/converse-disco.js

+ 2 - 2
src/converse-disco.js

@@ -80,8 +80,8 @@
                 },
                 },
 
 
                 queryForItems () {
                 queryForItems () {
-                    if (_.isEmpty(this.identities.where({'category': 'server'})) &&
-                        _.isEmpty(this.identities.where({'category': 'conference'}))) {
+
+                    if (_.isEmpty(this.identities.where({'category': 'server'}))) {
                         // Don't fetch features and items if this is not a
                         // Don't fetch features and items if this is not a
                         // server or a conference component.
                         // server or a conference component.
                         return;
                         return;