Fixed attachment rule condition

pull/190/head
M66B 5 years ago
parent 58b0c6aa1a
commit 599f4e95a4

@ -214,7 +214,7 @@ 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())) {
@ -226,6 +226,7 @@ public class EntityRule {
return false;
}
}
}
// Header
JSONObject jheader = jcondition.optJSONObject("header");

Loading…
Cancel
Save