fixed adding omemo encrypted images to gallery
This commit is contained in:
parent
f3fb108144
commit
724f30bcc5
|
@ -182,7 +182,7 @@ public class HttpDownloadConnection implements Transferable {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void finish() throws Exception {
|
private void finish() {
|
||||||
message.setTransferable(null);
|
message.setTransferable(null);
|
||||||
mHttpConnectionManager.finishConnection(this);
|
mHttpConnectionManager.finishConnection(this);
|
||||||
boolean notify = acceptedAutomatically && !message.isRead();
|
boolean notify = acceptedAutomatically && !message.isRead();
|
||||||
|
@ -191,6 +191,7 @@ public class HttpDownloadConnection implements Transferable {
|
||||||
}
|
}
|
||||||
mHttpConnectionManager.updateConversationUi(true);
|
mHttpConnectionManager.updateConversationUi(true);
|
||||||
final boolean notifyAfterScan = notify;
|
final boolean notifyAfterScan = notify;
|
||||||
|
final DownloadableFile file = mXmppConnectionService.getFileBackend().getFile(message, true);
|
||||||
mXmppConnectionService.getFileBackend().updateMediaScanner(file, () -> {
|
mXmppConnectionService.getFileBackend().updateMediaScanner(file, () -> {
|
||||||
if (notifyAfterScan) {
|
if (notifyAfterScan) {
|
||||||
mXmppConnectionService.getNotificationService().push(message);
|
mXmppConnectionService.getNotificationService().push(message);
|
||||||
|
|
Loading…
Reference in a new issue