From 4deca148d5640eb7246276eea2b6a21a81c7daf8 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Thu, 12 Apr 2018 21:08:53 +0200 Subject: fixed redownload of deleted http upload messages --- src/main/java/de/pixart/messenger/ui/ConversationFragment.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java index 109e0fe5f..b7c2cf4d8 100644 --- a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java +++ b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java @@ -1612,6 +1612,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(); } -- cgit v1.2.3