mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
DatabaseComponent.generateAck() now returns a boolean.
The return value indicates whether any batch IDs were written. AckWriter.finish() and Database.removeBatchesToAck() are only called if at least one batch ID was written.
This commit is contained in:
@@ -69,8 +69,11 @@ public interface DatabaseComponent {
|
||||
/** Adds a locally generated private message to the database. */
|
||||
void addLocalPrivateMessage(Message m, ContactId c) throws DbException;
|
||||
|
||||
/** Generates an acknowledgement for the given contact. */
|
||||
void generateAck(ContactId c, AckWriter a) throws DbException,
|
||||
/**
|
||||
* Generates an acknowledgement for the given contact.
|
||||
* @return True if any batch IDs were added to the acknowledgement.
|
||||
*/
|
||||
boolean generateAck(ContactId c, AckWriter a) throws DbException,
|
||||
IOException;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user