mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
[core] Add method to ConversationClient that returns a set of MessageIds it is responsible for
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user