reset file to normal message when attempting re-download after delete

fixes: #3604
This commit is contained in:
Daniel Gultsch 2019-12-30 00:14:52 +01:00
parent 2b375877eb
commit af3c106dc8

View file

@ -72,6 +72,15 @@ public class HttpDownloadConnection implements Transferable {
} }
public void init(boolean interactive) { public void init(boolean interactive) {
if (message.isDeleted()) {
if (message.getType() == Message.TYPE_PRIVATE_FILE) {
message.setType(Message.TYPE_PRIVATE);
} else if (message.isFileOrImage()) {
message.setType(Message.TYPE_TEXT);
}
message.setDeleted(false);
mXmppConnectionService.updateMessage(message);
}
this.message.setTransferable(this); this.message.setTransferable(this);
try { try {
final Message.FileParams fileParams = message.getFileParams(); final Message.FileParams fileParams = message.getFileParams();