Bugfix. getVCard called errback by mistake.
This commit is contained in:
parent
8863eb8a86
commit
f6e299cc82
10
converse.js
10
converse.js
@ -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 @@
|
|||||||
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 @@
|
|||||||
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user