Show avatars for contacts outside AuthorView

This commit is contained in:
Torsten Grote
2020-11-24 16:03:00 -03:00
parent 1b0cb532de
commit 6e57d7bb42
23 changed files with 189 additions and 94 deletions

View File

@@ -1,5 +1,6 @@
package org.briarproject.briar.api.identity;
import org.briarproject.bramble.api.contact.Contact;
import org.briarproject.bramble.api.db.DbException;
import org.briarproject.bramble.api.db.Transaction;
import org.briarproject.bramble.api.identity.AuthorId;
@@ -19,6 +20,17 @@ public interface AuthorManager {
*/
AuthorInfo getAuthorInfo(Transaction txn, AuthorId a) throws DbException;
/**
* Returns the {@link AuthorInfo} for the given contact.
*/
AuthorInfo getAuthorInfo(Contact c) throws DbException;
/**
* Returns the {@link AuthorInfo} for the given contact.
*/
AuthorInfo getAuthorInfo(Transaction txn, Contact c)
throws DbException;
/**
* Returns the {@link AuthorInfo} for the {@link LocalAuthor}.
*/