Removed redundant message state check.

This commit is contained in:
akwizgran
2016-09-12 12:09:21 +01:00
parent 8a3e5bfb50
commit b4714b5360

View File

@@ -205,10 +205,8 @@ class ValidationManagerImpl implements ValidationManager, Service,
if (e.getValue() != DELIVERED) allDelivered = false;
}
if (anyInvalid) {
if (db.getMessageState(txn, id) != INVALID) {
invalidateMessage(txn, id);
invalidate = getDependentsToInvalidate(txn, id);
}
invalidateMessage(txn, id);
invalidate = getDependentsToInvalidate(txn, id);
} else if (allDelivered) {
Message m = parseMessage(id, db.getRawMessage(txn, id));
Group g = db.getGroup(txn, m.getGroupId());