mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
@@ -0,0 +1,6 @@
|
||||
package org.briarproject.briar.api.messaging;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class FileTooBigException extends IOException {
|
||||
}
|
||||
@@ -20,7 +20,8 @@ public interface MessagingConstants {
|
||||
|
||||
/**
|
||||
* The maximum allowed size of image attachments.
|
||||
* TODO: Different limit for GIFs?
|
||||
*/
|
||||
int MAX_IMAGE_SIZE = 6 * 1024 * 1024;
|
||||
int MAX_IMAGE_SIZE = MAX_MESSAGE_BODY_LENGTH; // 6 * 1024 * 1024;
|
||||
|
||||
}
|
||||
|
||||
@@ -37,6 +37,8 @@ public interface MessagingManager extends ConversationClient {
|
||||
|
||||
/**
|
||||
* Stores a local attachment message.
|
||||
*
|
||||
* @throws FileTooBigException
|
||||
*/
|
||||
AttachmentHeader addLocalAttachment(GroupId groupId, long timestamp,
|
||||
String contentType, InputStream is) throws DbException, IOException;
|
||||
|
||||
Reference in New Issue
Block a user