Use temp file

This commit is contained in:
M66B 2019-09-27 14:16:56 +02:00
parent b7be494e6c
commit 58bff541bd
1 changed files with 1 additions and 1 deletions

View File

@ -674,7 +674,7 @@ class Core {
if (EntityFolder.DRAFTS.equals(folder.type) || EntityFolder.DRAFTS.equals(target.type)) {
Log.i(folder.name + " move from " + folder.type + " to " + target.type);
File file = message.getRawFile(context);
File file = File.createTempFile("draft", "." + message.id, context.getCacheDir());
try (OutputStream os = new FileOutputStream(file)) {
imessage.writeTo(os);
}