Commit 33540839 authored by JC Brand's avatar JC Brand

Bugfix. Remove view for contact moved to different group

Otherwise the contact stays visible under "Pending Contacts" although
the subscription request has been accepted.
parent e8718ec3
...@@ -50761,6 +50761,7 @@ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterat ...@@ -50761,6 +50761,7 @@ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterat
this.model.contacts.remove(contact, { this.model.contacts.remove(contact, {
'silent': true 'silent': true
}); });
this.get(contact.get('jid')).remove();
this.onRemove(contact); this.onRemove(contact);
}, },
onRemove: function onRemove(contact) { onRemove: function onRemove(contact) {
...@@ -707,6 +707,7 @@ ...@@ -707,6 +707,7 @@
// also cause the contact's view to be removed from the // also cause the contact's view to be removed from the
// "Pending Contacts" group. // "Pending Contacts" group.
this.model.contacts.remove(contact, {'silent': true}); this.model.contacts.remove(contact, {'silent': true});
this.get(contact.get('jid')).remove();
this.onRemove(contact); this.onRemove(contact);
}, },
......
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