Commit df3bcad0 authored by JC Brand's avatar JC Brand

Move roster view code into a separate plugin

parent f55b5937
......@@ -46,6 +46,7 @@ require.config({
// Converse
"converse-api": "src/converse-api",
"converse-chatview": "src/converse-chatview",
"converse-rosterview": "src/converse-rosterview",
"converse-controlbox": "src/converse-controlbox",
"converse-core": "src/converse-core",
"converse-headline": "src/converse-headline",
......
This diff is collapsed.
......@@ -761,17 +761,18 @@
}.bind(this), 200));
};
this.afterReconnected = function () {
this.chatboxes.registerMessageHandler();
this.xmppstatus.sendPresence();
this.giveFeedback(__('Contacts'));
};
this.onReconnected = function () {
// We need to re-register all the event handlers on the newly
// created connection.
var deferred = new $.Deferred();
this.initStatus(function () {
// FIXME: leaky abstraction from RosterView
this.rosterview.registerRosterXHandler();
this.rosterview.registerPresenceHandler();
this.chatboxes.registerMessageHandler();
this.xmppstatus.sendPresence();
this.giveFeedback(__('Contacts'));
this.afterReconnected();
deferred.resolve();
}.bind(this));
return deferred.promise();
......
......@@ -36,7 +36,6 @@
notification_icon: '/logo/conversejs.png'
});
converse.isOnlyChatStateNotification = function ($msg) {
// See XEP-0085 Chat State Notification
return (
......
This diff is collapsed.
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