mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 02:07:12 +00:00
Fixed attachment rule condition
This commit is contained in:
parent
58b0c6aa1a
commit
599f4e95a4
1 changed files with 10 additions and 9 deletions
|
@ -214,16 +214,17 @@ public class EntityRule {
|
|||
|
||||
if (jcondition.has("mimetype")) {
|
||||
String mimeType = jcondition.getString("mimetype");
|
||||
if (!TextUtils.isEmpty(mimeType)) {
|
||||
boolean found = false;
|
||||
for (EntityAttachment attachment : attachments)
|
||||
if (mimeType.equalsIgnoreCase(attachment.getMimeType())) {
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
|
||||
boolean found = false;
|
||||
for (EntityAttachment attachment : attachments)
|
||||
if (mimeType.equalsIgnoreCase(attachment.getMimeType())) {
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
|
||||
if (!found)
|
||||
return false;
|
||||
if (!found)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue