diff options
author | Christian Schneppe <christian@pix-art.de> | 2019-01-25 21:15:09 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2019-01-25 21:15:09 +0100 |
commit | afcbc3ccf36a44ebb1ff2b3b471078aa13e2aeb2 (patch) | |
tree | f8743542166c7086c8a57503c0794816911a594b /src/main/java/de/pixart/messenger/http/HttpDownloadConnection.java | |
parent | f7fe29c66964302af11b2a3996e44da48c1d2990 (diff) |
mark deleted files in database and not query them when querying for media
Diffstat (limited to 'src/main/java/de/pixart/messenger/http/HttpDownloadConnection.java')
-rw-r--r-- | src/main/java/de/pixart/messenger/http/HttpDownloadConnection.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/de/pixart/messenger/http/HttpDownloadConnection.java b/src/main/java/de/pixart/messenger/http/HttpDownloadConnection.java index b20e57e3f..308ec0605 100644 --- a/src/main/java/de/pixart/messenger/http/HttpDownloadConnection.java +++ b/src/main/java/de/pixart/messenger/http/HttpDownloadConnection.java @@ -137,10 +137,9 @@ public class HttpDownloadConnection implements Transferable { public void cancel() { this.canceled = true; mHttpConnectionManager.finishConnection(this); + message.setTransferable(null); if (message.isFileOrImage()) { - message.setTransferable(new TransferablePlaceholder(Transferable.STATUS_DELETED)); - } else { - message.setTransferable(null); + message.setDeleted(true); } mHttpConnectionManager.updateConversationUi(true); } |