From 6ff2ae4e0246aac275b88e1e39242c4994fd3dd9 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Fri, 24 Jan 2020 20:20:37 +0100 Subject: fixed adding omemo encrypted images to gallery --- src/main/java/de/pixart/messenger/http/HttpDownloadConnection.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/de/pixart/messenger') diff --git a/src/main/java/de/pixart/messenger/http/HttpDownloadConnection.java b/src/main/java/de/pixart/messenger/http/HttpDownloadConnection.java index 4d3db9f8c..c2f899ff7 100644 --- a/src/main/java/de/pixart/messenger/http/HttpDownloadConnection.java +++ b/src/main/java/de/pixart/messenger/http/HttpDownloadConnection.java @@ -193,7 +193,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(); @@ -202,6 +202,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); -- cgit v1.2.3