Explorar o código

Fixes #406.

Call to registerRosterXHandler and registerPresenceHandler on onReconnected give exception.
JC Brand %!s(int64=10) %!d(string=hai) anos
pai
achega
fc1768d12d
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      converse.js

+ 3 - 3
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));
         };