Use encryption folder for PGP decrypt

This commit is contained in:
M66B 2022-04-03 07:53:16 +02:00
parent 08ef349aae
commit 146f2bb8a8
1 changed files with 5 additions and 1 deletions

View File

@ -7382,7 +7382,11 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
InputStream in = null;
OutputStream out = null;
boolean inline = false;
File plain = File.createTempFile("plain", "." + message.id, context.getCacheDir());
File tmp = new File(context.getFilesDir(), "encryption");
if (!tmp.exists())
tmp.mkdir();
File plain = new File(tmp, message.id + ".pgp_out");
// Find encrypted data
for (EntityAttachment attachment : attachments)