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

This commit is contained in:
Christian Schneppe 2020-01-02 10:22:40 +01:00
parent 8ca04b46e6
commit 5aa52b0824
No known key found for this signature in database
GPG key ID: F30B8D686B44D87E

View file

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