aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-04-12 21:08:53 +0200
committerChristian Schneppe <christian@pix-art.de>2018-04-12 21:08:53 +0200
commit4deca148d5640eb7246276eea2b6a21a81c7daf8 (patch)
tree1206e476d0fcc238476d68709947593b61923b4b /src/main
parent30b2eb185c3271e72d042aded53001aa95e5ccfb (diff)
fixed redownload of deleted http upload messages
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/de/pixart/messenger/ui/ConversationFragment.java4
1 files changed, 4 insertions, 0 deletions
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();
}