From 724f30bcc5815cb13bf25c8fbf730b4d6c7a8227 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Wed, 15 Jan 2020 14:19:17 +0100 Subject: [PATCH] fixed adding omemo encrypted images to gallery --- .../eu/siacs/conversations/http/HttpDownloadConnection.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java b/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java index b494c7ab0..1d88d6ff4 100644 --- a/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java +++ b/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java @@ -182,7 +182,7 @@ public class HttpDownloadConnection implements Transferable { } } - private void finish() throws Exception { + private void finish() { message.setTransferable(null); mHttpConnectionManager.finishConnection(this); boolean notify = acceptedAutomatically && !message.isRead(); @@ -191,6 +191,7 @@ public class HttpDownloadConnection implements Transferable { } mHttpConnectionManager.updateConversationUi(true); final boolean notifyAfterScan = notify; + final DownloadableFile file = mXmppConnectionService.getFileBackend().getFile(message, true); mXmppConnectionService.getFileBackend().updateMediaScanner(file, () -> { if (notifyAfterScan) { mXmppConnectionService.getNotificationService().push(message);