mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-21 15:19:53 +01:00
Check whether hooks need to be called before loading contact.
This commit is contained in:
@@ -217,8 +217,10 @@ class ClientVersioningManagerImpl implements ClientVersioningManager, Client,
|
|||||||
Map<ClientMajorVersion, Visibility> after =
|
Map<ClientMajorVersion, Visibility> after =
|
||||||
getVisibilities(newLocalStates, newRemoteStates);
|
getVisibilities(newLocalStates, newRemoteStates);
|
||||||
// Call hooks for any visibilities that have changed
|
// Call hooks for any visibilities that have changed
|
||||||
Contact c = getContact(txn, m.getGroupId());
|
if (!before.equals(after)) {
|
||||||
callVisibilityHooks(txn, c, before, after);
|
Contact c = getContact(txn, m.getGroupId());
|
||||||
|
callVisibilityHooks(txn, c, before, after);
|
||||||
|
}
|
||||||
} catch (FormatException e) {
|
} catch (FormatException e) {
|
||||||
throw new InvalidMessageException(e);
|
throw new InvalidMessageException(e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user