1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-20 21:27:07 +00:00

Removed createTempFile/draft copy

This commit is contained in:
M66B 2022-04-30 19:19:10 +02:00
parent daf75f80df
commit 999c2bb019

View file

@ -1427,7 +1427,7 @@ class Core {
for (Message imessage : map.keySet()) {
EntityMessage message = map.get(imessage);
File file = File.createTempFile("draft", "." + message.id, context.getCacheDir());
File file = new File(message.getFile(context).getAbsoluteFile() + ".copy");
try (OutputStream os = new BufferedOutputStream(new FileOutputStream(file))) {
imessage.writeTo(os);
}