Browse Source

Only fetch VCards once we're already connected

JC Brand 7 years ago
parent
commit
5d62023701
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/converse-vcard.js

+ 1 - 1
src/converse-vcard.js

@@ -133,7 +133,7 @@
                 _converse.vcards.browserStorage = new Backbone.BrowserStorage[_converse.storage](b64_sha1(`converse.vcards`));
                 _converse.vcards.fetch();
             }
-            _converse.api.listen.on('connectionInitialized', _converse.initVCardCollection);
+            _converse.api.listen.on('sessionInitialized', _converse.initVCardCollection);
 
 
             _converse.on('addClientFeatures', () => {