mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-19 14:19:53 +01:00
Validator should call getMessageMetadataForValidator().
This commit is contained in:
@@ -18,9 +18,9 @@ import org.briarproject.api.sync.Group;
|
|||||||
import org.briarproject.api.sync.GroupId;
|
import org.briarproject.api.sync.GroupId;
|
||||||
import org.briarproject.api.sync.InvalidMessageException;
|
import org.briarproject.api.sync.InvalidMessageException;
|
||||||
import org.briarproject.api.sync.Message;
|
import org.briarproject.api.sync.Message;
|
||||||
|
import org.briarproject.api.sync.MessageContext;
|
||||||
import org.briarproject.api.sync.MessageId;
|
import org.briarproject.api.sync.MessageId;
|
||||||
import org.briarproject.api.sync.ValidationManager;
|
import org.briarproject.api.sync.ValidationManager;
|
||||||
import org.briarproject.api.sync.MessageContext;
|
|
||||||
import org.briarproject.util.ByteUtils;
|
import org.briarproject.util.ByteUtils;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
@@ -231,9 +231,8 @@ class ValidationManagerImpl implements ValidationManager, Service,
|
|||||||
}
|
}
|
||||||
if (d.getValue() != DELIVERED) allDelivered = false;
|
if (d.getValue() != DELIVERED) allDelivered = false;
|
||||||
}
|
}
|
||||||
if(allDelivered) {
|
if (allDelivered)
|
||||||
meta = db.getMessageMetadata(txn, id);
|
meta = db.getMessageMetadataForValidator(txn, id);
|
||||||
}
|
|
||||||
txn.setComplete();
|
txn.setComplete();
|
||||||
} finally {
|
} finally {
|
||||||
if (!txn.isComplete()) txn.setComplete();
|
if (!txn.isComplete()) txn.setComplete();
|
||||||
|
|||||||
Reference in New Issue
Block a user