From cdbab64b0383bda0d3269a2019ac391fd1e311ac Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sun, 18 Mar 2018 17:34:35 +0100 Subject: [PATCH] fixed redownload of deleted http upload messages --- .../java/eu/siacs/conversations/ui/ConversationFragment.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java index a46b38b30..3cea31a49 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java @@ -1322,6 +1322,10 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke } Transferable transferable = message.getTransferable(); if (transferable != null) { + if (transferable instanceof TransferablePlaceholder && message.treatAsDownloadable()) { + activity.xmppConnectionService.getHttpConnectionManager().createNewDownloadConnection(message, true); + return; + } if (!transferable.start()) { Toast.makeText(getActivity(), R.string.not_connected_try_again, Toast.LENGTH_SHORT).show(); }