Add contacts regardless of how getVCard failed
This commit is contained in:
parent
66b92fedcb
commit
cf161a729a
10
converse.js
10
converse.js
@ -696,12 +696,8 @@
|
|||||||
}, this),
|
}, this),
|
||||||
$.proxy(function (stanza) {
|
$.proxy(function (stanza) {
|
||||||
console.log("An error occured while fetching vcard");
|
console.log("An error occured while fetching vcard");
|
||||||
if ($(stanza).find('error').attr('code') == '503') {
|
var jid = $(stanza).attr('from');
|
||||||
// If we get service-unavailable, we continue to create
|
this.addContact(jid, jid);
|
||||||
// the user
|
|
||||||
var jid = $(stanza).attr('from');
|
|
||||||
this.addContact(jid, jid);
|
|
||||||
}
|
|
||||||
}, this));
|
}, this));
|
||||||
$('.search-xmpp').hide();
|
$('.search-xmpp').hide();
|
||||||
},
|
},
|
||||||
@ -2224,7 +2220,7 @@
|
|||||||
this.XMPPStatus = Backbone.Model.extend({
|
this.XMPPStatus = Backbone.Model.extend({
|
||||||
initialize: function () {
|
initialize: function () {
|
||||||
this.set({
|
this.set({
|
||||||
'status' : this.get('status') || 'online',
|
'status' : this.get('status') || 'online'
|
||||||
});
|
});
|
||||||
this.on('change', $.proxy(function () {
|
this.on('change', $.proxy(function () {
|
||||||
if (this.get('fullname') === undefined) {
|
if (this.get('fullname') === undefined) {
|
||||||
|
Loading…
Reference in New Issue
Block a user