Refactor attachment creation

This commit is contained in:
Torsten Grote
2019-04-05 15:48:31 -03:00
parent bb5a6c0241
commit 11eefaedcf
34 changed files with 557 additions and 288 deletions

View File

@@ -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);