Don't store vcards globally to all accounts.
This commit is contained in:
parent
714da6f0df
commit
f051ff283b
2
dist/converse.js
vendored
2
dist/converse.js
vendored
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user