Reset using a single db query

This commit is contained in:
Daniel Lublin
2021-12-09 12:52:43 +01:00
parent 3eb3dbde09
commit 93a03d7e15
5 changed files with 15 additions and 23 deletions

View File

@@ -473,8 +473,8 @@ public interface DatabaseComponent extends TransactionManager {
/**
* Reset the transmission count, expiry time and ETA of all messages that
* are eligible to be sent to the given contact. Messages are selected in
* the same way as {@link #getUnackedMessagesToSend(Transaction, ContactId)}
* are eligible to be sent to the given contact. This includes messages that
* have already been sent and are not yet due for retransmission.
*/
void resetUnackedMessagesToSend(Transaction txn, ContactId c)
throws DbException;