Commit f051ff28 authored by JC Brand's avatar JC Brand

Don't store vcards globally to all accounts.

parent 714da6f0
......@@ -68929,7 +68929,7 @@ _converse_core__WEBPACK_IMPORTED_MODULE_0__["default"].plugins.add('converse-vca
_converse.initVCardCollection = function () {
_converse.vcards = new _converse.VCards();
const id = b64_sha1(`converse.vcards`);
const id = b64_sha1(`${_converse.bare_jid}-converse.vcards`);
_converse.vcards.browserStorage = new Backbone.BrowserStorage[_converse.config.get('storage')](id);
_converse.vcards.fetch();
......@@ -123,7 +123,7 @@ converse.plugins.add('converse-vcard', {
/* Event handlers */
_converse.initVCardCollection = function () {
_converse.vcards = new _converse.VCards();
const id = b64_sha1(`converse.vcards`);
const id = b64_sha1(`${_converse.bare_jid}-converse.vcards`);
_converse.vcards.browserStorage = new Backbone.BrowserStorage[_converse.config.get('storage')](id);
_converse.vcards.fetch();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment