mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
add transactional versions to delete message functions
This commit is contained in:
@@ -96,12 +96,24 @@ public interface ConversationManager {
|
||||
*/
|
||||
DeletionResult deleteAllMessages(ContactId c) throws DbException;
|
||||
|
||||
/**
|
||||
* Deletes all messages exchanged with the given contact.
|
||||
*/
|
||||
DeletionResult deleteAllMessages(Transaction txn, ContactId c)
|
||||
throws DbException;
|
||||
|
||||
/**
|
||||
* Deletes the given set of messages associated with the given contact.
|
||||
*/
|
||||
DeletionResult deleteMessages(ContactId c, Collection<MessageId> messageIds)
|
||||
throws DbException;
|
||||
|
||||
/**
|
||||
* Deletes the given set of messages associated with the given contact.
|
||||
*/
|
||||
DeletionResult deleteMessages(Transaction txn, ContactId c,
|
||||
Collection<MessageId> messageIds) throws DbException;
|
||||
|
||||
@NotNullByDefault
|
||||
interface ConversationClient {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user