1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-02 13:14:39 +00:00

Small fix

This commit is contained in:
M66B 2021-12-27 09:43:25 +01:00
parent af4afe82ab
commit e7d43f7079

View file

@ -611,10 +611,13 @@ public class EntityRule {
return false;
}
if (!message.content)
EntityOperation.queue(context, message, EntityOperation.BODY);
boolean complete = true;
if (!message.content) {
complete = false;
EntityOperation.queue(context, message, EntityOperation.BODY);
}
if (attachments)
for (EntityAttachment attachment : db.attachment().getAttachments(message.id))
if (!attachment.available) {
@ -622,9 +625,9 @@ public class EntityRule {
EntityOperation.queue(context, message, EntityOperation.ATTACHMENT, attachment.id);
}
if (!message.content || !complete) {
if (!complete) {
EntityOperation.queue(context, message, EntityOperation.RULE, this.id);
return true;
return false;
}
executor.submit(new Runnable() {