Allow messages to be deleted.

This commit is contained in:
akwizgran
2016-02-09 11:14:52 +00:00
parent 43558ca089
commit 00275e260f
5 changed files with 101 additions and 5 deletions

View File

@@ -63,6 +63,12 @@ public interface DatabaseComponent {
*/
void addTransportKeys(ContactId c, TransportKeys k) throws DbException;
/**
* Deletes the message with the given ID. The message ID and any other
* associated data are not deleted.
*/
void deleteMessage(MessageId m) throws DbException;
/**
* Returns an acknowledgement for the given contact, or null if there are
* no messages to acknowledge.