mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-02 13:14:39 +00:00
Small fix
This commit is contained in:
parent
af4afe82ab
commit
e7d43f7079
1 changed files with 8 additions and 5 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue