fixed redownload of deleted http upload messages

This commit is contained in:
Daniel Gultsch 2018-03-18 17:34:35 +01:00
parent ba91fe2698
commit cdbab64b03
1 changed files with 4 additions and 0 deletions

View File

@ -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();
}