Commit f6e299cc authored by JC Brand's avatar JC Brand

Bugfix. getVCard called errback by mistake.

parent 8863eb8a
...@@ -254,6 +254,7 @@ ...@@ -254,6 +254,7 @@
fullname: fullname, fullname: fullname,
sender: 'them', sender: 'them',
delayed: delayed, delayed: delayed,
time: xmppchat.toISOString(new Date()),
composing: composing.length composing: composing.length
}); });
} }
...@@ -1243,7 +1244,7 @@ ...@@ -1243,7 +1244,7 @@
img_type = $vcard.find('TYPE').text(), img_type = $vcard.find('TYPE').text(),
url = $vcard.find('URL').text(); url = $vcard.find('URL').text();
callback(jid, fullname, img, img_type, url); callback(jid, fullname, img, img_type, url);
}, this), jid, errback()); }, this), jid, errback);
} }
} }
...@@ -1418,10 +1419,9 @@ ...@@ -1418,10 +1419,9 @@
is_last: is_last is_last: is_last
}); });
}, this), }, this),
$.proxy(function () { $.proxy(function (stanza) {
// TODO: Better handling here console.log("rosterHandler: Error occured while fetching vcard");
// Error occured while fetching vcard console.log(stanza);
console.log("An error occured while fetching vcard");
this.addRosterItem({ this.addRosterItem({
jid: item.jid, jid: item.jid,
subscription: item.subscription, subscription: item.subscription,
......
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