mirror of https://github.com/M66B/FairEmail.git
Reset content if message file missing
This commit is contained in:
parent
c897b5ccba
commit
95fd029da6
|
@ -2858,8 +2858,20 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
}
|
}
|
||||||
|
|
||||||
File file = message.getFile(context);
|
File file = message.getFile(context);
|
||||||
if (!file.exists())
|
if (!file.exists()) {
|
||||||
|
try {
|
||||||
|
db.beginTransaction();
|
||||||
|
|
||||||
|
db.message().resetMessageContent(message.id);
|
||||||
|
EntityOperation.queue(context, message, EntityOperation.BODY);
|
||||||
|
|
||||||
|
db.setTransactionSuccessful();
|
||||||
|
} finally {
|
||||||
|
db.endTransaction();
|
||||||
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
if (file.length() > 0)
|
if (file.length() > 0)
|
||||||
signed_data = false;
|
signed_data = false;
|
||||||
|
|
Loading…
Reference in New Issue