fixed redownload of deleted http upload messages
This commit is contained in:
parent
ba91fe2698
commit
cdbab64b03
|
@ -1322,6 +1322,10 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
|
||||||
}
|
}
|
||||||
Transferable transferable = message.getTransferable();
|
Transferable transferable = message.getTransferable();
|
||||||
if (transferable != null) {
|
if (transferable != null) {
|
||||||
|
if (transferable instanceof TransferablePlaceholder && message.treatAsDownloadable()) {
|
||||||
|
activity.xmppConnectionService.getHttpConnectionManager().createNewDownloadConnection(message, true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!transferable.start()) {
|
if (!transferable.start()) {
|
||||||
Toast.makeText(getActivity(), R.string.not_connected_try_again, Toast.LENGTH_SHORT).show();
|
Toast.makeText(getActivity(), R.string.not_connected_try_again, Toast.LENGTH_SHORT).show();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue