mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
[core] Add method to ConversationClient for deleting a set of messages
This also implements the method for MessagingManager (including integration tests) and adds no-op implementations for other clients.
This commit is contained in:
@@ -72,6 +72,17 @@ public interface ConversationManager {
|
||||
*/
|
||||
boolean deleteAllMessages(Transaction txn,
|
||||
ContactId c) throws DbException;
|
||||
|
||||
/**
|
||||
* Deletes the given set of messages associated with the given contact.
|
||||
* <p>
|
||||
* The set of message IDs must only include message IDs returned by
|
||||
* {@link #getMessageIds}.
|
||||
*
|
||||
* @return true if all messages could be deleted, false otherwise
|
||||
*/
|
||||
boolean deleteMessages(Transaction txn, ContactId c,
|
||||
Set<MessageId> messageIds) throws DbException;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user