Selaa lähdekoodia

Two small bugfixes

JC Brand 12 vuotta sitten
vanhempi
commit
e213d755ae
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      converse.js

+ 2 - 2
converse.js

@@ -1018,7 +1018,7 @@
             view = this.views[partner_jid];
             view = this.views[partner_jid];
             if (!view) {
             if (!view) {
                 $.getJSON(portal_url + "/xmpp-userinfo?user_id=" + Strophe.getNodeFromJid(partner_jid), $.proxy(function (data) {
                 $.getJSON(portal_url + "/xmpp-userinfo?user_id=" + Strophe.getNodeFromJid(partner_jid), $.proxy(function (data) {
-                    view = this.createChatBox(jid, data);
+                    view = this.createChatBox(partner_jid, data);
                     view.messageReceived(message);
                     view.messageReceived(message);
                     xmppchat.roster.addResource(partner_jid, resource);
                     xmppchat.roster.addResource(partner_jid, resource);
                 }, this));
                 }, this));
@@ -1670,7 +1670,7 @@
             this.connection.bare_jid = Strophe.getBareJidFromJid(this.connection.jid);
             this.connection.bare_jid = Strophe.getBareJidFromJid(this.connection.jid);
             this.connection.domain = Strophe.getDomainFromJid(this.connection.jid);
             this.connection.domain = Strophe.getDomainFromJid(this.connection.jid);
             this.connection.muc_domain = 'conference.' +  this.connection.domain;
             this.connection.muc_domain = 'conference.' +  this.connection.domain;
-            this.storage = new this.ClientStorage({'own_jid': this.connection.bare_jid});
+            this.storage = new this.ClientStorage(this.connection.bare_jid);
 
 
             this.chatboxes = new this.ChatBoxes();
             this.chatboxes = new this.ChatBoxes();
             this.chatboxesview = new this.ChatBoxesView({
             this.chatboxesview = new this.ChatBoxesView({