[android] move unsent attachment cache logic into AttachmentController

This commit is contained in:
Torsten Grote
2019-02-18 11:49:13 -03:00
parent 55f4600a69
commit 6167ba5c46
5 changed files with 72 additions and 58 deletions

View File

@@ -163,7 +163,7 @@ class MessagingManagerImpl extends ConversationClientImpl
if (is.available() == 0) throw new IOException();
byte[] b = new byte[MessageId.LENGTH];
new Random().nextBytes(b);
return new AttachmentHeader(new MessageId(b), "image/png");
return new AttachmentHeader(new MessageId(b), contentType);
}
@Override