Create and use method in MessagingManager for checking for image support

This commit is contained in:
Torsten Grote
2018-12-18 13:01:26 -02:00
committed by akwizgran
parent f73f8ca7e7
commit ad71d69149
3 changed files with 23 additions and 11 deletions

View File

@@ -2,6 +2,7 @@ package org.briarproject.briar.api.messaging;
import org.briarproject.bramble.api.contact.ContactId;
import org.briarproject.bramble.api.db.DbException;
import org.briarproject.bramble.api.db.Transaction;
import org.briarproject.bramble.api.nullsafety.NotNullByDefault;
import org.briarproject.bramble.api.sync.ClientId;
import org.briarproject.bramble.api.sync.GroupId;
@@ -60,4 +61,13 @@ public interface MessagingManager extends ConversationClient {
*/
Attachment getAttachment(MessageId m) throws DbException;
/**
* Returns true if the contact with the given {@link ContactId} does support
* image attachments.
*
* Added: 2019-01-01
*/
boolean contactSupportsImages(Transaction txn, ContactId c)
throws DbException;
}