mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
Refactor attachment creation
This commit is contained in:
@@ -174,6 +174,10 @@ class MessagingManagerImpl extends ConversationClientImpl
|
||||
}
|
||||
if (is.available() > 0) throw new FileTooBigException();
|
||||
is.close();
|
||||
try {
|
||||
Thread.sleep(1000);
|
||||
} catch (InterruptedException ignored) {
|
||||
}
|
||||
Message m = messageFactory.createMessage(groupId, timestamp, body);
|
||||
clientHelper.addLocalMessage(m, new BdfDictionary(), false);
|
||||
return new AttachmentHeader(m.getId(), contentType);
|
||||
|
||||
Reference in New Issue
Block a user