~singpolyma/cheogram-android

f638bc2b4aa22c48e7f2490d2f1bf09398742bfc — Stephen Paul Weber 7 months ago f16e3ec
Make sure the connection knows the final filename
1 files changed, 1 insertions(+), 2 deletions(-)

M src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java
M src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java => src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java +1 -2
@@ 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);