reset file to normal message when attempting re-download after delete
fixes: #3604
This commit is contained in:
parent
2b375877eb
commit
af3c106dc8
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue