mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-16 22:52:21 +01:00
reset file to normal message when attempting re-download after delete
fixes: #3604
This commit is contained in:
parent
2b375877eb
commit
af3c106dc8
1 changed files with 9 additions and 0 deletions
|
@ -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 a new issue