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
1 changed files with 9 additions and 0 deletions

View File

@ -72,6 +72,15 @@ public class HttpDownloadConnection implements Transferable {
}
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);
try {
final Message.FileParams fileParams = message.getFileParams();