reset file to normal message when attempting re-download after delete
This commit is contained in:
parent
8ca04b46e6
commit
5aa52b0824
1 changed files with 9 additions and 0 deletions
|
@ -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();
|
||||
|
|
Reference in a new issue