diff options
author | Christian Schneppe <christian.schneppe@pix-art.de> | 2020-01-24 20:20:37 +0100 |
---|---|---|
committer | Christian Schneppe <christian.schneppe@pix-art.de> | 2020-01-24 20:20:37 +0100 |
commit | 6ff2ae4e0246aac275b88e1e39242c4994fd3dd9 (patch) | |
tree | 724fd97a3c2399676a8cb1b258aaab4e27179a4d /src/main/java/de/pixart/messenger | |
parent | 67f244555c24b55bde4be9ad93c42388f69fd821 (diff) |
fixed adding omemo encrypted images to gallery
Diffstat (limited to 'src/main/java/de/pixart/messenger')
-rw-r--r-- | src/main/java/de/pixart/messenger/http/HttpDownloadConnection.java | 3 |
1 files changed, 2 insertions, 1 deletions
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); |