Commit 4ebed3c9 authored by JC Brand's avatar JC Brand

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

Still have to move the roster code out of src/converse-controlbox.js
parent 9fb1c238
...@@ -265,9 +265,6 @@ ...@@ -265,9 +265,6 @@
/* We initialize the roster, which will appear inside the /* We initialize the roster, which will appear inside the
* Contacts Panel. * 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(); var rostergroups = new converse.RosterGroups();
rostergroups.browserStorage = new Backbone.BrowserStorage[converse.storage]( rostergroups.browserStorage = new Backbone.BrowserStorage[converse.storage](
b64_sha1('converse.roster.groups'+converse.bare_jid)); b64_sha1('converse.roster.groups'+converse.bare_jid));
......
...@@ -822,6 +822,9 @@ ...@@ -822,6 +822,9 @@
this.enableCarbons(); this.enableCarbons();
this.initStatus(function () { this.initStatus(function () {
this.registerIntervalHandler(); 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.chatboxes.onConnected();
this.giveFeedback(__('Contacts')); this.giveFeedback(__('Contacts'));
if (typeof this.callback === 'function') { if (typeof this.callback === 'function') {
......
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