Skip to content
Snippets Groups Projects
Unverified Commit 00e59613 authored by akwizgran's avatar akwizgran
Browse files

Call validation hooks after storing message & metadata.

parent 9f8baab6
No related branches found
No related tags found
No related merge requests found
......@@ -135,11 +135,11 @@ class ValidationManagerImpl implements ValidationManager, Service,
if (meta == null) {
db.setMessageValid(txn, m, c, false);
} else {
for (ValidationHook hook : hooks)
hook.validatingMessage(txn, m, c, meta);
db.mergeMessageMetadata(txn, m.getId(), meta);
db.setMessageValid(txn, m, c, true);
db.setMessageShared(txn, m, true);
for (ValidationHook hook : hooks)
hook.validatingMessage(txn, m, c, meta);
}
txn.setComplete();
} finally {
......
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