Skip to content
Snippets Groups Projects
Verified Commit 97f40bd2 authored by akwizgran's avatar akwizgran
Browse files

Check whether hooks need to be called before loading contact.

parent 36b191e9
No related branches found
No related tags found
No related merge requests found
......@@ -217,8 +217,10 @@ class ClientVersioningManagerImpl implements ClientVersioningManager, Client,
Map<ClientMajorVersion, Visibility> after =
getVisibilities(newLocalStates, newRemoteStates);
// Call hooks for any visibilities that have changed
Contact c = getContact(txn, m.getGroupId());
callVisibilityHooks(txn, c, before, after);
if (!before.equals(after)) {
Contact c = getContact(txn, m.getGroupId());
callVisibilityHooks(txn, c, before, after);
}
} catch (FormatException e) {
throw new InvalidMessageException(e);
}
......
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