diff --git a/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java b/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java index 514e59c261970356756eac63f99b5fa6f4689d53..c27f1019f229f7782d7159e26c741639c3c37ffa 100644 --- a/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java +++ b/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java @@ -195,8 +195,7 @@ public class HttpDownloadConnection implements Transferable { if (message.getEncryption() == Message.ENCRYPTION_PGP) { notify = message.getConversation().getAccount().getPgpDecryptionService().decrypt(message, notify); } - DownloadableFile file; - final DownloadableFile tmp = mXmppConnectionService.getFileBackend().getFile(message); + final DownloadableFile tmp = file; final String extension = MimeUtils.extractRelevantExtension(tmp.getName()); try { mXmppConnectionService.getFileBackend().setupRelativeFilePath(message, new FileInputStream(tmp), extension);