We still need the roster in core, so set it there.

Still have to move the roster code out of src/converse-controlbox.js
This commit is contained in:
JC Brand 2016-02-29 20:04:47 +00:00
parent 9fb1c2383e
commit 4ebed3c995
2 changed files with 3 additions and 3 deletions

View File

@ -265,9 +265,6 @@
/* We initialize the roster, which will appear inside the
* Contacts Panel.
*/
converse.roster = new converse.RosterContacts();
converse.roster.browserStorage = new Backbone.BrowserStorage[converse.storage](
b64_sha1('converse.contacts-'+converse.bare_jid));
var rostergroups = new converse.RosterGroups();
rostergroups.browserStorage = new Backbone.BrowserStorage[converse.storage](
b64_sha1('converse.roster.groups'+converse.bare_jid));

View File

@ -822,6 +822,9 @@
this.enableCarbons();
this.initStatus(function () {
this.registerIntervalHandler();
this.roster = new this.RosterContacts();
this.roster.browserStorage = new Backbone.BrowserStorage[this.storage](
b64_sha1('converse.contacts-'+this.bare_jid));
this.chatboxes.onConnected();
this.giveFeedback(__('Contacts'));
if (typeof this.callback === 'function') {