[android] store attachments and actually attach them to sent messages

This commit is contained in:
Torsten Grote
2018-11-23 18:58:32 -02:00
parent cdf4f3a24b
commit 4796902b9c
6 changed files with 207 additions and 62 deletions

View File

@@ -8,7 +8,7 @@ import org.briarproject.bramble.api.sync.GroupId;
import org.briarproject.bramble.api.sync.MessageId;
import org.briarproject.briar.api.conversation.ConversationManager.ConversationClient;
import java.nio.ByteBuffer;
import java.io.InputStream;
@NotNullByDefault
public interface MessagingManager extends ConversationClient {
@@ -37,7 +37,7 @@ public interface MessagingManager extends ConversationClient {
* Stores a local attachment message.
*/
AttachmentHeader addLocalAttachment(GroupId groupId, long timestamp,
String contentType, ByteBuffer data) throws DbException;
String contentType, InputStream is) throws DbException;
/**
* Returns the ID of the contact with the given private conversation.