aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/crypto
diff options
context:
space:
mode:
authorChristian Schneppe <christian.schneppe@pix-art.de>2019-10-26 19:33:26 +0200
committerChristian Schneppe <christian.schneppe@pix-art.de>2019-10-26 19:33:26 +0200
commit824ba44fd41a9e4df8a78cae4e954fcfc3b99a41 (patch)
tree995a39b0bc0e72a2834b326de7cbf00b899380ed /src/main/java/de/pixart/messenger/crypto
parent8e2adfcfd1def2a348e8ac8410e4430c0d13c76a (diff)
don’t mark pgp encrypted files received from dino as deleted
Diffstat (limited to 'src/main/java/de/pixart/messenger/crypto')
-rw-r--r--src/main/java/de/pixart/messenger/crypto/PgpDecryptionService.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/crypto/PgpDecryptionService.java b/src/main/java/de/pixart/messenger/crypto/PgpDecryptionService.java
index cc5e3fe70..d93618740 100644
--- a/src/main/java/de/pixart/messenger/crypto/PgpDecryptionService.java
+++ b/src/main/java/de/pixart/messenger/crypto/PgpDecryptionService.java
@@ -201,6 +201,9 @@ public class PgpDecryptionService {
if (fixedFile.getParentFile().mkdirs()) {
Log.d(Config.LOGTAG, "created parent directories for " + fixedFile.getAbsolutePath());
}
+ synchronized (mXmppConnectionService.FILENAMES_TO_IGNORE_DELETION) {
+ mXmppConnectionService.FILENAMES_TO_IGNORE_DELETION.add(outputFile.getAbsolutePath());
+ }
if (outputFile.renameTo(fixedFile)) {
Log.d(Config.LOGTAG, "renamed " + outputFile.getAbsolutePath() + " to " + fixedFile.getAbsolutePath());
message.setRelativeFilePath(path);