Răsfoiți Sursa

Bugfix. Need to return `this`.

JC Brand 8 ani în urmă
părinte
comite
37df4ad18c
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/converse-muc.js

+ 1 - 1
src/converse-muc.js

@@ -1060,7 +1060,7 @@
                     if (this.model.get('connection_status') ===  Strophe.Status.CONNECTED) {
                         // We have restored a chat room from session storage,
                         // so we don't send out a presence stanza again.
-                        return;
+                        return this;
                     }
                     var stanza = $pres({
                         'from': converse.connection.jid,