Don't store vcards globally to all accounts.

This commit is contained in:
JC Brand 2018-11-30 19:43:40 +01:00
parent 714da6f0df
commit f051ff283b
2 changed files with 2 additions and 2 deletions

2
dist/converse.js vendored
View File

@ -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();

View File

@ -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();
}