Ignore unknown priorities

pull/204/head
M66B 3 years ago
parent 7917682e08
commit ed28127d9c

@ -1184,8 +1184,6 @@ public class MessageHelper {
else if ("normal".equalsIgnoreCase(header) || else if ("normal".equalsIgnoreCase(header) ||
"medium".equalsIgnoreCase(header) || "medium".equalsIgnoreCase(header) ||
"med".equalsIgnoreCase(header) || "med".equalsIgnoreCase(header) ||
"a".equalsIgnoreCase(header) ||
"aplus".equalsIgnoreCase(header) ||
"none".equalsIgnoreCase(header)) "none".equalsIgnoreCase(header))
priority = EntityMessage.PRIORITIY_NORMAL; priority = EntityMessage.PRIORITIY_NORMAL;
else if ("low".equalsIgnoreCase(header) || else if ("low".equalsIgnoreCase(header) ||
@ -1194,9 +1192,13 @@ public class MessageHelper {
"marketing".equalsIgnoreCase(header) || "marketing".equalsIgnoreCase(header) ||
"bulk".equalsIgnoreCase(header) || "bulk".equalsIgnoreCase(header) ||
"batch".equalsIgnoreCase(header) || "batch".equalsIgnoreCase(header) ||
"b".equalsIgnoreCase(header) ||
"mass".equalsIgnoreCase(header)) "mass".equalsIgnoreCase(header))
priority = EntityMessage.PRIORITIY_LOW; priority = EntityMessage.PRIORITIY_LOW;
else if ("a".equalsIgnoreCase(header) ||
"b".equalsIgnoreCase(header) ||
"c".equalsIgnoreCase(header) ||
"aplus".equalsIgnoreCase(header))
; // Ignore unknown
else if (!TextUtils.isEmpty(header)) else if (!TextUtils.isEmpty(header))
try { try {
priority = Integer.parseInt(header); priority = Integer.parseInt(header);

Loading…
Cancel
Save