fix bug while downloading files (Christian Schneppe)

This commit is contained in:
12aw 2022-04-07 23:10:48 +02:00
parent b46592b215
commit 576a98a92c

View file

@ -1276,10 +1276,11 @@ public class MessageAdapter extends ArrayAdapter<Message> {
} else if (transferable != null && transferable.getStatus() == Transferable.STATUS_OFFER_CHECK_FILESIZE) {
displayDownloadableMessage(viewHolder, message, activity.getString(R.string.check_x_filesize, UIHelper.getFileDescriptionString(activity, message)), darkBackground);
} else {
/* todo why should we mark a file as deleted? --> causing strange side effects
if (!activity.xmppConnectionService.getFileBackend().getFile(message).exists() && !message.isFileDeleted()) {
markFileDeleted(message);
displayInfoMessage(viewHolder, activity.getString(R.string.file_deleted), darkBackground, message);
}
}*/
if (checkFileExistence(message, view, viewHolder)) {
markFileExisting(message);
}