Commit e213d755 authored by JC Brand's avatar JC Brand

Two small bugfixes

parent d0dc83ed
......@@ -1018,7 +1018,7 @@
view = this.views[partner_jid];
if (!view) {
$.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);
xmppchat.roster.addResource(partner_jid, resource);
}, this));
......@@ -1670,7 +1670,7 @@
this.connection.bare_jid = Strophe.getBareJidFromJid(this.connection.jid);
this.connection.domain = Strophe.getDomainFromJid(this.connection.jid);
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.chatboxesview = new this.ChatBoxesView({
......
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