[core] Add method to ConversationClient that returns a set of MessageIds it is responsible for

This commit is contained in:
Torsten Grote
2019-10-21 14:59:10 -03:00
parent 01df141c08
commit 190a6bff96
5 changed files with 31 additions and 3 deletions

View File

@@ -12,6 +12,7 @@ import org.briarproject.briar.api.client.MessageTracker.GroupCount;
import org.briarproject.briar.api.messaging.MessagingManager;
import java.util.Collection;
import java.util.Set;
@NotNullByDefault
public interface ConversationManager {
@@ -51,6 +52,13 @@ public interface ConversationManager {
Collection<ConversationMessageHeader> getMessageHeaders(Transaction txn,
ContactId contactId) throws DbException;
/**
* Returns all conversation {@link MessageId}s for the given contact
* this client is responsible for.
*/
Set<MessageId> getMessageIds(Transaction txn, ContactId contactId)
throws DbException;
GroupCount getGroupCount(Transaction txn, ContactId c)
throws DbException;