Skip to content
Snippets Groups Projects
Commit 3872a05d authored by akwizgran's avatar akwizgran
Browse files

Merge branch '209-contact-manager-hooks' into 'master'

Run hooks when contacts/identities are added/removed. #209

Now that the sync layer is separated from its clients, actions that used to occur within the DatabaseComponent, such as adding or removing private groups when adding or removing a contact, have to be handled by clients.

This patch adds a mechanism for clients to register hooks with the Contact/IdentityManager to be run when contacts/identities are being added/removed. The MessagingManager uses ContactManager hooks for adding and removing private groups, and the ContactManager uses IdentityManager hooks for removing contacts when an identity is removed.

I've also changed the way some components register with the LifecycleManager and EventBus.

This merge request depends on !64 - I'll merge them at the same time. Closes #209.

See merge request !68
parents 2cd3a3a4 281ca734
Loading
Showing
with 397 additions and 94 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment