Bugfix. Remove view for contact moved to different group
Otherwise the contact stays visible under "Pending Contacts" although the subscription request has been accepted.
This commit is contained in:
parent
e8718ec3d3
commit
3354083934
1
dist/converse.js
vendored
1
dist/converse.js
vendored
@ -50761,6 +50761,7 @@ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterat
|
||||
this.model.contacts.remove(contact, {
|
||||
'silent': true
|
||||
});
|
||||
this.get(contact.get('jid')).remove();
|
||||
this.onRemove(contact);
|
||||
},
|
||||
onRemove: function onRemove(contact) {
|
||||
|
@ -707,6 +707,7 @@
|
||||
// also cause the contact's view to be removed from the
|
||||
// "Pending Contacts" group.
|
||||
this.model.contacts.remove(contact, {'silent': true});
|
||||
this.get(contact.get('jid')).remove();
|
||||
this.onRemove(contact);
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user