Commit 9f251f72 authored by JC Brand's avatar JC Brand

Fix. Make sure that a user appears as pending once you've added them.

parent fdff5122
......@@ -3951,10 +3951,11 @@
this.addExistingContact(contact);
}
}
if (_.has(contact.changed, 'subscription')) {
if (contact.changed.requesting == 'true') {
this.addContactToGroup(contact, HEADER_REQUESTING_CONTACTS);
}
if (_.has(contact.changed, 'ask') && contact.changed.ask == 'subscribe') {
this.addContactToGroup(contact, HEADER_PENDING_CONTACTS);
}
if (_.has(contact.changed, 'subscription') && contact.changed.requesting == 'true') {
this.addContactToGroup(contact, HEADER_REQUESTING_CONTACTS);
}
},
......
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