From fc1768d12d3f57cb8eba6b2dfebc31faa6cef826 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Thu, 21 May 2015 17:04:56 +0200 Subject: [PATCH] Fixes #406. Call to registerRosterXHandler and registerPresenceHandler on onReconnected give exception. --- converse.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/converse.js b/converse.js index fc7010f30..bc6971620 100644 --- a/converse.js +++ b/converse.js @@ -667,10 +667,10 @@ // We need to re-register all the event handlers on the newly // created connection. this.initStatus($.proxy(function () { - this.registerRosterXHandler(); - this.registerPresenceHandler(); + this.rosterview.registerRosterXHandler(); + this.rosterview.registerPresenceHandler(); this.chatboxes.registerMessageHandler(); - converse.xmppstatus.sendPresence(); + this.xmppstatus.sendPresence(); this.giveFeedback(__('Contacts')); }, this)); };