|
@@ -1130,13 +1130,11 @@
|
|
_converse.initAvatars = function () {
|
|
_converse.initAvatars = function () {
|
|
if (_.isUndefined(_converse.avatars)) {
|
|
if (_.isUndefined(_converse.avatars)) {
|
|
_converse.avatars = new _converse.Avatars();
|
|
_converse.avatars = new _converse.Avatars();
|
|
- _converse.avatars.browserStorage = new Backbone.BrowserStorage.local(
|
|
|
|
- b64_sha1(`converse.avatars-${_converse.bare_jid}`)
|
|
|
|
- );
|
|
|
|
|
|
+ _converse.avatars.browserStorage = new Backbone.BrowserStorage.local(b64_sha1(`converse.avatars`));
|
|
_converse.avatars.fetch();
|
|
_converse.avatars.fetch();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- _converse.api.listen.on('connectionInitialized', () => _converse.initAvatars);
|
|
|
|
|
|
+ _converse.api.listen.on('connectionInitialized', _converse.initAvatars);
|
|
|
|
|
|
_converse.on('addClientFeatures', () => {
|
|
_converse.on('addClientFeatures', () => {
|
|
if (_converse.allow_muc) {
|
|
if (_converse.allow_muc) {
|