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:
JC Brand 2018-03-27 14:46:52 +02:00
parent e8718ec3d3
commit 3354083934
2 changed files with 2 additions and 0 deletions

1
dist/converse.js vendored
View File

@ -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) {

View File

@ -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);
},