diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-10-27 11:00:03 +0100 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-10-27 11:00:03 +0100 |
commit | da822ebae89ad3b010a58cdf3b812d26de4b2aa4 (patch) | |
tree | 2c1e6302c2c869fc5d53aa154fcfbb643265843a /src/eu/siacs/conversations/crypto/PgpEngine.java | |
parent | b7f596363b67d7c62b5034aedc5548f97ca68569 (diff) |
check for links in pgp encrypted messages as well
Diffstat (limited to '')
-rw-r--r-- | src/eu/siacs/conversations/crypto/PgpEngine.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/crypto/PgpEngine.java b/src/eu/siacs/conversations/crypto/PgpEngine.java index c3935ff5..f1a698db 100644 --- a/src/eu/siacs/conversations/crypto/PgpEngine.java +++ b/src/eu/siacs/conversations/crypto/PgpEngine.java @@ -61,6 +61,10 @@ public class PgpEngine { if (message.getEncryption() == Message.ENCRYPTION_PGP) { message.setBody(os.toString()); message.setEncryption(Message.ENCRYPTION_DECRYPTED); + if (message.trusted() && message.bodyContainsDownloadable()) { + mXmppConnectionService.getHttpConnectionManager() + .createNewConnection(message); + } callback.success(message); } } catch (IOException e) { |